Browse Source

test/objattrtest_d: remove prefixes on test files

The MMGen Project 3 days ago
parent
commit
17ae5a49c3
3 changed files with 5 additions and 5 deletions
  1. 2 2
      test/objattrtest.py
  2. 2 2
      test/objattrtest_d/btc_mainnet.py
  3. 1 1
      test/objattrtest_d/common.py

+ 2 - 2
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}')

+ 2 - 2
test/objattrtest_d/oat_btc_mainnet.py → test/objattrtest_d/btc_mainnet.py

@@ -4,10 +4,10 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-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
 

+ 1 - 1
test/objattrtest_d/oat_common.py → test/objattrtest_d/common.py

@@ -4,7 +4,7 @@
 # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
 
 """
-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