Browse Source

test/objtest_d: remove prefixes on test files

The MMGen Project 3 days ago
parent
commit
c2d7a90b68

+ 1 - 1
test/objtest.py

@@ -180,7 +180,7 @@ def run_test(mod, test, arg, input_data, arg1, exc_name):
 
 def do_loop():
 	import importlib
-	modname = f'test.objtest_d.ot_{proto.coin.lower()}_{proto.network}'
+	modname = f'test.objtest_d.{proto.coin.lower()}_{proto.network}'
 	mod = importlib.import_module(modname)
 	test_data = getattr(mod, 'tests')
 	gmsg(f'Running data object tests for {proto.coin} {proto.network}')

+ 2 - 2
test/objtest_d/ot_btc_mainnet.py → test/objtest_d/btc_mainnet.py

@@ -4,7 +4,7 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_btc_mainnet: BTC mainnet test vectors for MMGen data objects
+test.objtest_d.btc_mainnet: BTC mainnet test vectors for MMGen data objects
 """
 
 from decimal import Decimal
@@ -28,7 +28,7 @@ from mmgen.tw.shared import TwMMGenID, TwLabel, TwComment
 from mmgen.rpc import IPPort
 from mmgen.protocol import init_proto
 
-from .ot_common import r16, r32
+from .common import r16, r32
 from ..include.common import (
 	cfg,
 	utf8_ctrl,

+ 2 - 2
test/objtest_d/ot_btc_testnet.py → test/objtest_d/btc_testnet.py

@@ -4,14 +4,14 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_btc_testnet: BTC testnet test vectors for MMGen data objects
+test.objtest_d.btc_testnet: BTC testnet test vectors for MMGen data objects
 """
 
 from mmgen.key import PrivKey, WifKey
 from mmgen.addr import CoinAddr
 from mmgen.protocol import init_proto
 
-from .ot_common import r16, r32
+from .common import r16, r32
 from ..include.common import cfg
 
 proto = init_proto(cfg, 'btc', network='testnet', need_amt=True)

+ 1 - 1
test/objtest_d/ot_common.py → test/objtest_d/common.py

@@ -4,7 +4,7 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_common: shared data for MMGen data objects tests
+test.objtest_d.common: shared data for MMGen data objects tests
 """
 
 from ..include.common import getrand

+ 1 - 1
test/objtest_d/ot_eth_mainnet.py → test/objtest_d/eth_mainnet.py

@@ -4,7 +4,7 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_eth_mainnet: ETH mainnet test vectors for MMGen data objects
+test.objtest_d.eth_mainnet: ETH mainnet test vectors for MMGen data objects
 """
 
 from decimal import Decimal

+ 2 - 2
test/objtest_d/ot_ltc_mainnet.py → test/objtest_d/ltc_mainnet.py

@@ -4,7 +4,7 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_ltc_mainnet: LTC mainnet test vectors for MMGen data objects
+test.objtest_d.ltc_mainnet: LTC mainnet test vectors for MMGen data objects
 """
 
 from decimal import Decimal
@@ -14,7 +14,7 @@ from mmgen.addr import CoinAddr
 from mmgen.key import WifKey, PrivKey
 from mmgen.protocol import init_proto
 
-from .ot_common import r16, r32
+from .common import r16, r32
 from ..include.common import cfg
 
 proto = init_proto(cfg, 'ltc', need_amt=True)

+ 2 - 2
test/objtest_d/ot_ltc_testnet.py → test/objtest_d/ltc_testnet.py

@@ -4,14 +4,14 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-test.objtest_d.ot_ltc_testnet: LTC testnet test vectors for MMGen data objects
+test.objtest_d.ltc_testnet: LTC testnet test vectors for MMGen data objects
 """
 
 from mmgen.addr import CoinAddr
 from mmgen.key import WifKey, PrivKey
 from mmgen.protocol import init_proto
 
-from .ot_common import r16, r32
+from .common import r16, r32
 from ..include.common import cfg
 
 proto = init_proto(cfg, 'ltc', network='testnet', need_amt=True)