test/objtest_d: remove prefixes on test files
This commit is contained in:
parent
f3869f914b
commit
c2d7a90b68
7 changed files with 11 additions and 11 deletions
|
|
@ -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}')
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
@ -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)
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue