test/objattrtest_d: remove prefixes on test files

This commit is contained in:
The MMGen Project 2025-03-29 09:30:15 +00:00
commit 17ae5a49c3
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 5 additions and 5 deletions

View file

@ -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}')

View file

@ -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

View file

@ -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