From c2d7a90b68306ce5c64c8e6fbe9edc545cf5c236 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 29 Mar 2025 09:30:15 +0000 Subject: [PATCH] test/objtest_d: remove prefixes on test files --- test/objtest.py | 2 +- test/objtest_d/{ot_btc_mainnet.py => btc_mainnet.py} | 4 ++-- test/objtest_d/{ot_btc_testnet.py => btc_testnet.py} | 4 ++-- test/objtest_d/{ot_common.py => common.py} | 2 +- test/objtest_d/{ot_eth_mainnet.py => eth_mainnet.py} | 2 +- test/objtest_d/{ot_ltc_mainnet.py => ltc_mainnet.py} | 4 ++-- test/objtest_d/{ot_ltc_testnet.py => ltc_testnet.py} | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) rename test/objtest_d/{ot_btc_mainnet.py => btc_mainnet.py} (99%) rename test/objtest_d/{ot_btc_testnet.py => btc_testnet.py} (95%) rename test/objtest_d/{ot_common.py => common.py} (76%) rename test/objtest_d/{ot_eth_mainnet.py => eth_mainnet.py} (95%) rename test/objtest_d/{ot_ltc_mainnet.py => ltc_mainnet.py} (96%) rename test/objtest_d/{ot_ltc_testnet.py => ltc_testnet.py} (95%) diff --git a/test/objtest.py b/test/objtest.py index 975a670e..712c6b11 100755 --- a/test/objtest.py +++ b/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}') diff --git a/test/objtest_d/ot_btc_mainnet.py b/test/objtest_d/btc_mainnet.py similarity index 99% rename from test/objtest_d/ot_btc_mainnet.py rename to test/objtest_d/btc_mainnet.py index 11a635cc..700de8e3 100755 --- a/test/objtest_d/ot_btc_mainnet.py +++ b/test/objtest_d/btc_mainnet.py @@ -4,7 +4,7 @@ # Copyright (C)2013-2025 The MMGen Project """ -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, diff --git a/test/objtest_d/ot_btc_testnet.py b/test/objtest_d/btc_testnet.py similarity index 95% rename from test/objtest_d/ot_btc_testnet.py rename to test/objtest_d/btc_testnet.py index 05029215..bc23b89a 100755 --- a/test/objtest_d/ot_btc_testnet.py +++ b/test/objtest_d/btc_testnet.py @@ -4,14 +4,14 @@ # Copyright (C)2013-2025 The MMGen Project """ -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) diff --git a/test/objtest_d/ot_common.py b/test/objtest_d/common.py similarity index 76% rename from test/objtest_d/ot_common.py rename to test/objtest_d/common.py index d61f1655..5ec39927 100755 --- a/test/objtest_d/ot_common.py +++ b/test/objtest_d/common.py @@ -4,7 +4,7 @@ # Copyright (C)2013-2025 The MMGen Project """ -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 diff --git a/test/objtest_d/ot_eth_mainnet.py b/test/objtest_d/eth_mainnet.py similarity index 95% rename from test/objtest_d/ot_eth_mainnet.py rename to test/objtest_d/eth_mainnet.py index 61a5d95d..8577155b 100755 --- a/test/objtest_d/ot_eth_mainnet.py +++ b/test/objtest_d/eth_mainnet.py @@ -4,7 +4,7 @@ # Copyright (C)2013-2025 The MMGen Project """ -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 diff --git a/test/objtest_d/ot_ltc_mainnet.py b/test/objtest_d/ltc_mainnet.py similarity index 96% rename from test/objtest_d/ot_ltc_mainnet.py rename to test/objtest_d/ltc_mainnet.py index e27149d8..aed0c03a 100755 --- a/test/objtest_d/ot_ltc_mainnet.py +++ b/test/objtest_d/ltc_mainnet.py @@ -4,7 +4,7 @@ # Copyright (C)2013-2025 The MMGen Project """ -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) diff --git a/test/objtest_d/ot_ltc_testnet.py b/test/objtest_d/ltc_testnet.py similarity index 95% rename from test/objtest_d/ot_ltc_testnet.py rename to test/objtest_d/ltc_testnet.py index 7ec6aea4..441410f7 100755 --- a/test/objtest_d/ot_ltc_testnet.py +++ b/test/objtest_d/ltc_testnet.py @@ -4,14 +4,14 @@ # Copyright (C)2013-2025 The MMGen Project """ -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)