From 17ae5a49c376460f1b579238fe2b85017367ad4c Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 29 Mar 2025 09:30:15 +0000 Subject: [PATCH] test/objattrtest_d: remove prefixes on test files --- test/objattrtest.py | 4 ++-- test/objattrtest_d/{oat_btc_mainnet.py => btc_mainnet.py} | 4 ++-- test/objattrtest_d/{oat_common.py => common.py} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename test/objattrtest_d/{oat_btc_mainnet.py => btc_mainnet.py} (97%) rename test/objattrtest_d/{oat_common.py => common.py} (95%) diff --git a/test/objattrtest.py b/test/objattrtest.py index acfe3974..39f927aa 100755 --- a/test/objattrtest.py +++ b/test/objattrtest.py @@ -55,7 +55,7 @@ cfg = Config(opts_data=opts_data) from test.include.common import set_globals set_globals(cfg) -from test.objattrtest_d.oat_common import sample_objs +from test.objattrtest_d.common import sample_objs pd = namedtuple('attr_bits', ['read_ok', 'delete_ok', 'reassign_ok', 'typeconv', 'set_none_ok']) perm_bits = ('read_ok', 'delete_ok', 'reassign_ok') @@ -164,7 +164,7 @@ def test_object(mod, test_data, objname): def do_loop(): import importlib - modname = f'test.objattrtest_d.oat_{proto.coin.lower()}_{proto.network}' + modname = f'test.objattrtest_d.{proto.coin.lower()}_{proto.network}' mod = importlib.import_module(modname) test_data = getattr(mod, 'tests') gmsg(f'Running immutable attribute tests for {proto.coin} {proto.network}') diff --git a/test/objattrtest_d/oat_btc_mainnet.py b/test/objattrtest_d/btc_mainnet.py similarity index 97% rename from test/objattrtest_d/oat_btc_mainnet.py rename to test/objattrtest_d/btc_mainnet.py index ca8cc5ee..c2baffb3 100755 --- a/test/objattrtest_d/oat_btc_mainnet.py +++ b/test/objattrtest_d/btc_mainnet.py @@ -4,10 +4,10 @@ # Copyright (C)2013-2025 The MMGen Project """ -test.objattrtest_d.oat_btc_mainnet: BTC mainnet test vectors for MMGen data objects +test.objattrtest_d.btc_mainnet: BTC mainnet test vectors for MMGen data objects """ -from .oat_common import sample_objs, seed_bin, atd +from .common import sample_objs, seed_bin, atd from ..include.common import cfg from mmgen.protocol import init_proto diff --git a/test/objattrtest_d/oat_common.py b/test/objattrtest_d/common.py similarity index 95% rename from test/objattrtest_d/oat_common.py rename to test/objattrtest_d/common.py index 2113214e..71444253 100755 --- a/test/objattrtest_d/oat_common.py +++ b/test/objattrtest_d/common.py @@ -4,7 +4,7 @@ # Copyright (C)2013-2025 The MMGen Project """ -test.objattrtest_d.oat_common: shared data for MMGen data objects tests +test.objattrtest_d.common: shared data for MMGen data objects tests """ from decimal import Decimal