Browse Source

test/cmdtest_d: remove prefixes on files

The MMGen Project 3 days ago
parent
commit
b2e210485f

+ 4 - 4
test/cmdtest.py

@@ -236,13 +236,13 @@ else:
 if cfg.skipping_deps:
 	cfg.no_daemon_autostart = True
 
-from test.cmdtest_d.cfg import cfgs
+from test.cmdtest_d.include.cfg import cfgs
 
 def list_cmds():
 
 	def gen_output():
 
-		from test.cmdtest_d.group_mgr import CmdGroupMgr
+		from test.cmdtest_d.include.group_mgr import CmdGroupMgr
 		gm = CmdGroupMgr(cfg)
 		cw, d = 0, []
 
@@ -297,7 +297,7 @@ if __name__ == '__main__':
 		create_tmp_dirs(shm_dir)
 
 	if cfg.list_cmd_groups:
-		from test.cmdtest_d.group_mgr import CmdGroupMgr
+		from test.cmdtest_d.include.group_mgr import CmdGroupMgr
 		CmdGroupMgr(cfg).list_cmd_groups()
 		sys.exit(0)
 	elif cfg.list_cmds:
@@ -308,7 +308,7 @@ if __name__ == '__main__':
 		set_restore_term_at_exit()
 
 	from mmgen.exception import TestSuiteSpawnedScriptException
-	from test.cmdtest_d.runner import CmdTestRunner
+	from test.cmdtest_d.include.runner import CmdTestRunner
 
 	try:
 		tr = CmdTestRunner(cfg, repo_root, data_dir, trash_dir, trash_dir2)

+ 3 - 3
test/cmdtest_d/ct_automount.py → test/cmdtest_d/automount.py

@@ -9,12 +9,12 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.ct_automount: autosigning with automount tests for the cmdtest.py test suite
+test.cmdtest_d.automount: autosigning with automount tests for the cmdtest.py test suite
 """
 import time
 
-from .ct_autosign import CmdTestAutosignThreaded
-from .ct_regtest import CmdTestRegtest, rt_pw
+from .autosign import CmdTestAutosignThreaded
+from .regtest import CmdTestRegtest, rt_pw
 from ..include.common import gr_uc
 
 class CmdTestAutosignAutomount(CmdTestAutosignThreaded, CmdTestRegtest):

+ 4 - 4
test/cmdtest_d/ct_automount_eth.py → test/cmdtest_d/automount_eth.py

@@ -9,13 +9,13 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.ct_automount_eth: Ethereum automount autosigning tests for the cmdtest.py test suite
+test.cmdtest_d.automount_eth: Ethereum automount autosigning tests for the cmdtest.py test suite
 """
 import os, re
 
-from .ct_autosign import CmdTestAutosignThreaded
-from .ct_ethdev import CmdTestEthdev, parity_devkey_fn
-from .common import dfl_words_file
+from .autosign import CmdTestAutosignThreaded
+from .ethdev import CmdTestEthdev, parity_devkey_fn
+from .include.common import dfl_words_file
 from ..include.common import cfg
 
 class CmdTestAutosignETH(CmdTestAutosignThreaded, CmdTestEthdev):

+ 5 - 5
test/cmdtest_d/ct_autosign.py → test/cmdtest_d/autosign.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_autosign: Autosign tests for the cmdtest.py test suite
+test.cmdtest_d.autosign: Autosign tests for the cmdtest.py test suite
 """
 
 import sys, os, time, shutil, atexit
@@ -44,10 +44,10 @@ from ..include.common import (
 	end_silence,
 	VirtBlockDevice,
 )
-from .common import ref_dir, dfl_words_file, dfl_bip39_file
+from .include.common import ref_dir, dfl_words_file, dfl_bip39_file
 
-from .ct_base import CmdTestBase
-from .input import stealth_mnemonic_entry
+from .base import CmdTestBase
+from .include.input import stealth_mnemonic_entry
 
 class CmdTestAutosignBase(CmdTestBase):
 	networks     = ('btc',)
@@ -771,7 +771,7 @@ class CmdTestAutosign(CmdTestAutosignBase):
 
 		assert op in ('copy', 'set_count', 'remove_signed')
 
-		from .ct_ref import CmdTestRef
+		from .ref import CmdTestRef
 		def gen():
 			d = CmdTestRef.sources['ref_tx_file']
 			dirmap = [e for e in self.filedir_map if e[0] in (txfile_coins or self.txfile_coins)]

+ 2 - 2
test/cmdtest_d/ct_base.py → test/cmdtest_d/base.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_base: Base class for the cmdtest.py test suite
+test.cmdtest_d.base: Base class for the cmdtest.py test suite
 """
 
 import sys, os
@@ -26,7 +26,7 @@ from mmgen.util import msg
 from mmgen.color import gray, purple, yellow
 
 from ..include.common import write_to_file, read_from_file, imsg
-from .common import get_file_with_ext
+from .include.common import get_file_with_ext
 
 class CmdTestBase:
 	'initializer class for the cmdtest.py test suite'

+ 2 - 2
test/cmdtest_d/ct_cfgfile.py → test/cmdtest_d/cfgfile.py

@@ -7,7 +7,7 @@
 # Licensed according to the terms of GPL Version 3.  See LICENSE for details.
 
 """
-test.cmdtest_d.ct_cfgfile: CfgFile tests for the MMGen cmdtest.py test suite
+test.cmdtest_d.cfgfile: CfgFile tests for the MMGen cmdtest.py test suite
 """
 
 import sys, os, time, shutil
@@ -16,7 +16,7 @@ from mmgen.color import yellow
 from mmgen.cfgfile import CfgFileSampleSys, CfgFileSampleUsr, cfg_file_sample
 
 from ..include.common import read_from_file, write_to_file, imsg
-from .ct_base import CmdTestBase
+from .base import CmdTestBase
 
 class CmdTestCfgFile(CmdTestBase):
 	'CfgFile API'

+ 3 - 3
test/cmdtest_d/ct_chainsplit.py → test/cmdtest_d/chainsplit.py

@@ -17,14 +17,14 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_chainsplit: Forking scenario tests for the cmdtest.py test suite
+test.cmdtest_d.chainsplit: Forking scenario tests for the cmdtest.py test suite
 This module is unmaintained and currently non-functional
 """
 
 from mmgen.util import die
 
-from .common import get_file_with_ext, rt_pw
-from .ct_regtest import CmdTestRegtest
+from .include.common import get_file_with_ext, rt_pw
+from .regtest import CmdTestRegtest
 
 class CmdTestChainsplit(CmdTestRegtest):
 	'forking scenario tests for the cmdtest.py test suite'

+ 4 - 4
test/cmdtest_d/ct_ethdev.py → test/cmdtest_d/ethdev.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_ethdev: Ethdev tests for the cmdtest.py test suite
+test.cmdtest_d.ethdev: Ethdev tests for the cmdtest.py test suite
 """
 
 import sys, time, os, re, shutil, asyncio, json
@@ -45,7 +45,7 @@ from ..include.common import (
 	gr_uc,
 	stop_test_daemons
 )
-from .common import (
+from .include.common import (
 	ref_dir,
 	dfl_words_file,
 	tx_comment_jp,
@@ -56,8 +56,8 @@ from .common import (
 	ok_msg,
 	Ctrl_U
 )
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
+from .base import CmdTestBase
+from .shared import CmdTestShared
 from .httpd.etherscan import EtherscanServer
 
 etherscan_server = EtherscanServer()

+ 6 - 6
test/cmdtest_d/ct_ethswap.py → test/cmdtest_d/ethswap.py

@@ -9,21 +9,21 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.ct_ethswap: Ethereum swap tests for the cmdtest.py test suite
+test.cmdtest_d.ethswap: Ethereum swap tests for the cmdtest.py test suite
 """
 
 from mmgen.wallet.mmgen import wallet as MMGenWallet
 from mmgen.cfg import Config
 from mmgen.protocol import init_proto
 
-from .runner import CmdTestRunner
+from .include.runner import CmdTestRunner
 
-from .common import dfl_words_file, dfl_seed_id, rt_pw
+from .include.common import dfl_words_file, dfl_seed_id, rt_pw
 
 from .httpd.thornode import ThornodeServer
-from .ct_regtest import CmdTestRegtest
-from .ct_swap import CmdTestSwapMethods
-from .ct_ethdev import CmdTestEthdev
+from .regtest import CmdTestRegtest
+from .swap import CmdTestSwapMethods
+from .ethdev import CmdTestEthdev
 
 thornode_server = ThornodeServer()
 

+ 2 - 2
test/cmdtest_d/ct_help.py → test/cmdtest_d/help.py

@@ -9,7 +9,7 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.ct_help: helpscreen test group for the cmdtest.py test suite
+test.cmdtest_d.help: helpscreen test group for the cmdtest.py test suite
 """
 
 import sys, os, time
@@ -17,7 +17,7 @@ import sys, os, time
 from mmgen.util import ymsg
 from mmgen.cfg import gc
 
-from .ct_base import CmdTestBase
+from .base import CmdTestBase
 
 class CmdTestHelp(CmdTestBase):
 	'help, info and usage screens'

+ 2 - 2
test/cmdtest_d/cfg.py → test/cmdtest_d/include/cfg.py

@@ -9,11 +9,11 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.cfg: configuration data for cmdtest.py
+test.cmdtest_d.include.cfg: configuration data for cmdtest.py
 """
 
+from ...include.common import cfg
 from .common import pwfile, hincog_fn, incog_id_fn, randbool
-from ..include.common import cfg
 
 cmd_groups_altcoin = ['ref_altcoin', 'autosign', 'ethdev', 'xmrwallet', 'xmr_autosign']
 

+ 2 - 2
test/cmdtest_d/common.py → test/cmdtest_d/include/common.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.common: Shared routines and data for the cmdtest.py test suite
+test.cmdtest_d.include.common: Shared routines and data for the cmdtest.py test suite
 """
 
 import sys, os
@@ -25,7 +25,7 @@ import sys, os
 from mmgen.color import green, blue, gray
 from mmgen.util import msg
 
-from ..include.common import cfg, getrand, text_jp, text_zh, ascii_cyr_gr, lat_cyr_gr
+from ...include.common import cfg, getrand, text_jp, text_zh, ascii_cyr_gr, lat_cyr_gr
 
 rt_pw = 'abc-α'
 ref_wallet_brainpass = 'abc'

+ 2 - 2
test/cmdtest_d/group_mgr.py → test/cmdtest_d/include/group_mgr.py

@@ -9,7 +9,7 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.include.group_mgr: Command group manager for the MMGen Wallet cmdtest suite
+cmdtest_d.include.group_mgr: Command group manager for the MMGen Wallet cmdtest suite
 """
 
 import sys, os, time
@@ -84,7 +84,7 @@ class CmdGroupMgr:
 		if modname is None and 'modname' in kwargs:
 			modname = kwargs['modname']
 		import importlib
-		modpath = f'test.cmdtest_d.ct_{modname or gname}'
+		modpath = f'test.cmdtest_d.{modname or gname}'
 		return getattr(importlib.import_module(modpath), clsname)
 
 	def create_group(self, gname, sg_name, full_data=False, modname=None, is3seed=False, add_dpy=False):

+ 3 - 3
test/cmdtest_d/runner.py → test/cmdtest_d/include/runner.py

@@ -9,7 +9,7 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.include.runner: test runner for the MMGen Wallet cmdtest suite
+test.cmdtest_d.include.runner: test runner for the MMGen Wallet cmdtest suite
 """
 
 import sys, os, time, asyncio
@@ -18,7 +18,7 @@ from mmgen.cfg import gc
 from mmgen.color import red, yellow, green, blue, cyan, gray, nocolor
 from mmgen.util import msg, Msg, rmsg, bmsg, die, suf, make_timestr
 
-from test.include.common import (
+from ...include.common import (
 	cmdtest_py_log_fn,
 	iqmsg,
 	omsg,
@@ -229,7 +229,7 @@ class CmdTestRunner:
 
 	def init_group(self, gname, sg_name=None, cmd=None, quiet=False, do_clean=True):
 
-		from test.cmdtest_d.cfg import cmd_groups_altcoin
+		from .cfg import cmd_groups_altcoin
 		if self.cfg.no_altcoin and gname in cmd_groups_altcoin:
 			omsg(gray(f'INFO → skipping test group {gname!r} (--no-altcoin)'))
 			return None

+ 0 - 0
test/cmdtest_d/xinput.py → test/cmdtest_d/include/xinput.py


+ 4 - 4
test/cmdtest_d/ct_input.py → test/cmdtest_d/input.py

@@ -7,7 +7,7 @@
 # Licensed according to the terms of GPL Version 3.  See LICENSE for details.
 
 """
-test.cmdtest_d.ct_input: user input tests for the MMGen cmdtest.py test suite
+test.cmdtest_d.input: user input tests for the MMGen cmdtest.py test suite
 """
 
 import sys, os
@@ -24,9 +24,9 @@ from ..include.common import (
 	read_from_file,
 	strip_ansi_escapes
 )
-from .common import Ctrl_U, ref_dir
-from .ct_base import CmdTestBase
-from .input import stealth_mnemonic_entry, user_dieroll_entry
+from .include.common import Ctrl_U, ref_dir
+from .base import CmdTestBase
+from .include.input import stealth_mnemonic_entry, user_dieroll_entry
 
 hold_protect_delay = 2 if sys.platform == 'darwin' else None
 

+ 4 - 4
test/cmdtest_d/ct_main.py → test/cmdtest_d/main.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_main: Basic operations tests for the cmdtest.py test suite
+test.cmdtest_d.main: Basic operations tests for the cmdtest.py test suite
 """
 
 import sys, os
@@ -41,7 +41,7 @@ from ..include.common import (
 	getrandhex,
 	strip_ansi_escapes
 )
-from .common import (
+from .include.common import (
 	pwfile,
 	hincog_fn,
 	get_file_with_ext,
@@ -53,8 +53,8 @@ from .common import (
 	incog_id_fn,
 	non_mmgen_fn
 )
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
+from .base import CmdTestBase
+from .shared import CmdTestShared
 
 def make_brainwallet_file(cfg, fn):
 	# Print random words with random whitespace in between

+ 4 - 4
test/cmdtest_d/ct_misc.py → test/cmdtest_d/misc.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_misc: Miscellaneous test groups for the cmdtest.py test suite
+test.cmdtest_d.misc: Miscellaneous test groups for the cmdtest.py test suite
 """
 
 import sys, re
@@ -25,9 +25,9 @@ import sys, re
 from mmgen.util import die
 
 from ..include.common import start_test_daemons, stop_test_daemons, imsg
-from .common import get_file_with_ext, dfl_words_file
-from .ct_base import CmdTestBase
-from .ct_main import CmdTestMain
+from .include.common import get_file_with_ext, dfl_words_file
+from .base import CmdTestBase
+from .main import CmdTestMain
 
 class CmdTestDev(CmdTestBase):
 	'developer scripts'

+ 2 - 2
test/cmdtest_d/ct_opts.py → test/cmdtest_d/opts.py

@@ -7,12 +7,12 @@
 # Licensed according to the terms of GPL Version 3.  See LICENSE for details.
 
 """
-test.cmdtest_d.ct_opts: options processing tests for the MMGen cmdtest.py test suite
+test.cmdtest_d.opts: options processing tests for the MMGen cmdtest.py test suite
 """
 
 import os, time
 
-from .ct_base import CmdTestBase
+from .base import CmdTestBase
 
 class CmdTestOpts(CmdTestBase):
 	'command-line options parsing and processing'

+ 4 - 4
test/cmdtest_d/ct_ref.py → test/cmdtest_d/ref.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_ref: Reference file tests for the cmdtest.py test suite
+test.cmdtest_d.ref: Reference file tests for the cmdtest.py test suite
 """
 
 import os
@@ -33,7 +33,7 @@ from ..include.common import (
 	read_from_file,
 	sample_text
 )
-from .common import (
+from .include.common import (
 	dfl_words_file,
 	ref_dir,
 	chksum_pat,
@@ -45,8 +45,8 @@ from .common import (
 	skip
 )
 
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
+from .base import CmdTestBase
+from .shared import CmdTestShared
 
 wpasswd = 'reference password'
 

+ 7 - 7
test/cmdtest_d/ct_ref_3seed.py → test/cmdtest_d/ref_3seed.py

@@ -17,8 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_ref_3seed: Saved and generated reference file tests for 128,
-                             192 and 256-bit seeds for the cmdtest.py test suite
+test.cmdtest_d.ref_3seed: Saved and generated reference file tests for 128,
+                          192 and 256-bit seeds for the cmdtest.py test suite
 """
 
 import os
@@ -27,7 +27,7 @@ from mmgen.util import msg, capfirst
 from mmgen.wallet import get_wallet_cls
 
 from ..include.common import cmp_or_die, joinpath
-from .common import (
+from .include.common import (
 	pwfile,
 	ref_wallet_hash_preset,
 	ref_wallet_brainpass,
@@ -35,9 +35,9 @@ from .common import (
 	ref_dir,
 	ok_msg
 )
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
-from .ct_wallet import CmdTestWalletConv
+from .base import CmdTestBase
+from .shared import CmdTestShared
+from .wallet import CmdTestWalletConv
 
 class CmdTestRef3Seed(CmdTestBase, CmdTestShared):
 	'saved wallet files for 128-, 192- and 256-bit seeds + generated filename checks'
@@ -65,7 +65,7 @@ class CmdTestRef3Seed(CmdTestBase, CmdTestShared):
 		('ref_mn_chk',       ([], 'saved native MMGen mnemonic file')),
 		('ref_bip39_chk',    ([], 'saved BIP39 mnemonic file')),
 		('ref_hincog_chk',   ([], 'saved hidden incog reference wallet')),
-		('ref_brain_chk',    ([], 'saved brainwallet')),                    # in ct_shared
+		('ref_brain_chk',    ([], 'saved brainwallet')),                    # in shared
 
 		# generating new reference ('abc' brainwallet) wallets for filename checks:
 		('ref_walletgen_brain',         ([], 'generating new reference wallet + filename check (brain)')),

+ 4 - 4
test/cmdtest_d/ct_ref_altcoin.py → test/cmdtest_d/ref_altcoin.py

@@ -17,15 +17,15 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_ref_altcoin: Altcoin reference file tests for the cmdtest.py test suite
+test.cmdtest_d.ref_altcoin: Altcoin reference file tests for the cmdtest.py test suite
 """
 
 from mmgen.color import set_vt100
 
-from .common import pwfile, dfl_wpasswd, ref_dir, dfl_words_file, dfl_addr_idx_list
+from .include.common import pwfile, dfl_wpasswd, ref_dir, dfl_words_file, dfl_addr_idx_list
 from ..include.common import joinpath, start_test_daemons, stop_test_daemons, cmp_or_die
-from .ct_ref import CmdTestRef
-from .ct_base import CmdTestBase
+from .ref import CmdTestRef
+from .base import CmdTestBase
 
 class CmdTestRefAltcoin(CmdTestRef, CmdTestBase):
 	'saved and generated altcoin reference files'

+ 4 - 4
test/cmdtest_d/ct_regtest.py → test/cmdtest_d/regtest.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_regtest: Regtest tests for the cmdtest.py test suite
+test.cmdtest_d.regtest: Regtest tests for the cmdtest.py test suite
 """
 
 import os, json, time, re
@@ -46,7 +46,7 @@ from ..include.common import (
 	getrandhex,
 	make_burn_addr)
 
-from .common import (
+from .include.common import (
 	ok_msg,
 	get_file_with_ext,
 	get_comment,
@@ -56,8 +56,8 @@ from .common import (
 	get_env_without_debug_vars,
 	rt_pw)
 
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
+from .base import CmdTestBase
+from .shared import CmdTestShared
 
 pat_date = r'\b\d\d-\d\d-\d\d\b'
 pat_date_time = r'\b\d\d\d\d-\d\d-\d\d\s+\d\d:\d\d\b'

+ 3 - 3
test/cmdtest_d/ct_seedsplit.py → test/cmdtest_d/seedsplit.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_seedsplit: Seed split/join tests for the cmdtest.py test suite
+test.cmdtest_d.seedsplit: Seed split/join tests for the cmdtest.py test suite
 """
 
 import os
@@ -26,8 +26,8 @@ from mmgen.wallet import get_wallet_cls
 from mmgen.util import capfirst
 
 from ..include.common import strip_ansi_escapes, cmp_or_die
-from .common import get_file_with_ext
-from .ct_base import CmdTestBase
+from .include.common import get_file_with_ext
+from .base import CmdTestBase
 
 ref_wf = 'test/ref/98831F3A.bip39'
 ref_sid = '98831F3A'

+ 2 - 2
test/cmdtest_d/ct_shared.py → test/cmdtest_d/shared.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_shared: Shared methods for the cmdtest.py test suite
+test.cmdtest_d.shared: Shared methods for the cmdtest.py test suite
 """
 
 from mmgen.util import get_extension
@@ -26,7 +26,7 @@ from mmgen.addrlist import AddrList
 from mmgen.passwdlist import PasswordList
 
 from ..include.common import cfg, cmp_or_die, strip_ansi_escapes, joinpath, silence, end_silence
-from .common import ref_bw_file, ref_bw_hash_preset, ref_dir
+from .include.common import ref_bw_file, ref_bw_hash_preset, ref_dir
 
 class CmdTestShared:
 	'shared methods for the cmdtest.py test suite'

+ 4 - 4
test/cmdtest_d/ct_swap.py → test/cmdtest_d/swap.py

@@ -9,18 +9,18 @@
 #   https://gitlab.com/mmgen/mmgen-wallet
 
 """
-test.cmdtest_d.ct_swap: asset swap tests for the cmdtest.py test suite
+test.cmdtest_d.swap: asset swap tests for the cmdtest.py test suite
 """
 
 from pathlib import Path
 
 from mmgen.protocol import init_proto
 from ..include.common import make_burn_addr, gr_uc
-from .common import dfl_bip39_file
+from .include.common import dfl_bip39_file
 from .httpd.thornode import ThornodeServer
 
-from .ct_autosign import CmdTestAutosign, CmdTestAutosignThreaded
-from .ct_regtest import CmdTestRegtest, rt_data, dfl_wcls, rt_pw, strip_ansi_escapes
+from .autosign import CmdTestAutosign, CmdTestAutosignThreaded
+from .regtest import CmdTestRegtest, rt_data, dfl_wcls, rt_pw, strip_ansi_escapes
 
 thornode_server = ThornodeServer()
 

+ 4 - 4
test/cmdtest_d/ct_tool.py → test/cmdtest_d/tool.py

@@ -7,7 +7,7 @@
 # Licensed according to the terms of GPL Version 3.  See LICENSE for details.
 
 """
-test.cmdtest_d.ct_tool: tool tests for the MMGen cmdtest.py test suite
+test.cmdtest_d.tool: tool tests for the MMGen cmdtest.py test suite
 """
 
 import sys, os
@@ -23,9 +23,9 @@ from ..include.common import (
 	joinpath,
 	getrand
 )
-from .common import hincog_fn, incog_id_fn, hincog_offset, tool_enc_passwd, ref_dir
-from .ct_base import CmdTestBase
-from .ct_main import CmdTestMain
+from .include.common import hincog_fn, incog_id_fn, hincog_offset, tool_enc_passwd, ref_dir
+from .base import CmdTestBase
+from .main import CmdTestMain
 
 class CmdTestTool(CmdTestMain, CmdTestBase):
 	"interactive 'mmgen-tool' commands"

+ 4 - 4
test/cmdtest_d/ct_wallet.py → test/cmdtest_d/wallet.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_wallet: Wallet conversion tests for the cmdtest.py test suite
+test.cmdtest_d.wallet: Wallet conversion tests for the cmdtest.py test suite
 """
 
 import sys, os
@@ -26,9 +26,9 @@ from mmgen.util import msg, capfirst, get_extension
 from mmgen.wallet import get_wallet_cls
 
 from ..include.common import joinpath, VirtBlockDevice
-from .common import ref_dir, ref_wallet_brainpass, ref_wallet_incog_offset, hincog_fn, hincog_bytes
-from .ct_base import CmdTestBase
-from .ct_shared import CmdTestShared
+from .include.common import ref_dir, ref_wallet_brainpass, ref_wallet_incog_offset, hincog_fn, hincog_bytes
+from .base import CmdTestBase
+from .shared import CmdTestShared
 
 class CmdTestWalletConv(CmdTestBase, CmdTestShared):
 	'wallet conversion to and from reference data'

+ 6 - 6
test/cmdtest_d/ct_xmr_autosign.py → test/cmdtest_d/xmr_autosign.py

@@ -10,7 +10,7 @@
 
 
 """
-test.cmdtest_d.ct_xmr_autosign: xmr autosigning tests for the cmdtest.py test suite
+test.cmdtest_d.xmr_autosign: xmr autosigning tests for the cmdtest.py test suite
 """
 
 import re
@@ -19,10 +19,10 @@ from mmgen.color import blue, cyan, brown
 from mmgen.util import async_run
 
 from ..include.common import imsg, silence, end_silence
-from .common import get_file_with_ext
+from .include.common import get_file_with_ext
 
-from .ct_xmrwallet import CmdTestXMRWallet
-from .ct_autosign import CmdTestAutosignThreaded
+from .xmrwallet import CmdTestXMRWallet
+from .autosign import CmdTestAutosignThreaded
 
 def make_burn_addr(cfg):
 	from mmgen.tool.coin import tool_cmd
@@ -38,7 +38,7 @@ class CmdTestXMRAutosign(CmdTestXMRWallet, CmdTestAutosignThreaded):
 	"""
 	tmpdir_nums = [39]
 
-	# ct_xmrwallet attrs:
+	# xmrwallet attrs:
 	tx_relay_user = 'miner'
 	#    user     sid      autosign  shift kal_range add_coind_args
 	user_data = (
@@ -46,7 +46,7 @@ class CmdTestXMRAutosign(CmdTestXMRWallet, CmdTestAutosignThreaded):
 		('alice', 'FE3C6545', True,  150, '1-2', []),
 	)
 
-	# ct_autosign attrs:
+	# autosign attrs:
 	coins = ['xmr']
 
 	cmd_group = (

+ 3 - 3
test/cmdtest_d/ct_xmrwallet.py → test/cmdtest_d/xmrwallet.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 """
-test.cmdtest_d.ct_xmrwallet: xmrwallet tests for the cmdtest.py test suite
+test.cmdtest_d.xmrwallet: xmrwallet tests for the cmdtest.py test suite
 """
 
 import sys, os, time, re, atexit, asyncio, shutil
@@ -42,8 +42,8 @@ from ..include.common import (
 	end_silence,
 	strip_ansi_escapes
 )
-from .common import get_file_with_ext
-from .ct_base import CmdTestBase
+from .include.common import get_file_with_ext
+from .base import CmdTestBase
 
 # atexit functions:
 def stop_daemons(self):

+ 1 - 1
test/include/cfg.py

@@ -12,4 +12,4 @@
 test.include.cfg: Configuration for test scripts
 """
 
-from ..cmdtest_d.cfg import cfgs as clean_cfgs
+from ..cmdtest_d.include.cfg import cfgs as clean_cfgs

+ 1 - 1
test/modtest_d/testdep.py

@@ -65,5 +65,5 @@ class unit_tests:
 		return True
 
 	def ssh_socks_proxy(self, name, ut):
-		from test.cmdtest_d.ct_xmrwallet import CmdTestXMRWallet
+		from test.cmdtest_d.xmrwallet import CmdTestXMRWallet
 		return CmdTestXMRWallet.init_proxy(cfg, external_call=True)

+ 1 - 1
test/test-release.d/cfg.sh

@@ -90,7 +90,7 @@ init_tests() {
 		b $pylint $PYLINT_OPTS --disable=relative-beyond-top-level test/cmdtest_d
 		a $pylint $PYLINT_OPTS --ignore-paths '.*/eth/.*' mmgen
 		a $pylint $PYLINT_OPTS --ignore-paths '.*/dep.py,.*/testdep.py' test
-		a $pylint $PYLINT_OPTS --ignore-paths '.*/ct_ethdev.py' --disable=relative-beyond-top-level test/cmdtest_d
+		a $pylint $PYLINT_OPTS --ignore-paths '.*/ethdev.py' --disable=relative-beyond-top-level test/cmdtest_d
 		- $pylint $PYLINT_OPTS examples
 	"