file rename: test_daemon.py -> daemon.py

This commit is contained in:
The MMGen Project 2019-12-10 18:16:56 +00:00
commit ac02cf66a6
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
10 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
test_daemon.py: Daemon control classes for MMGen test suite and regtest mode
daemon.py: Daemon control interface for the MMGen suite
"""
import shutil

View file

@ -114,7 +114,7 @@ import mmgen.altcoins.eth.tx
from mmgen.txsign import txsign
from mmgen.protocol import CoinProtocol,init_coin
if g.test_suite:
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
if opt.stealth_led: opt.led = True

View file

@ -23,7 +23,7 @@ regtest: Coin daemon regression test mode setup and operations for the MMGen sui
import os,time,shutil,re,json
from subprocess import run,PIPE
from mmgen.common import *
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
# To enforce MMGen policy that all testing must ignore the user's ~/.bitcoin
# dir, locate the daemon datadir under MMGen data_dir:

View file

@ -122,7 +122,7 @@ setup(
'mmgen.seed',
'mmgen.sha2',
'mmgen.term',
'mmgen.test_daemon',
'mmgen.daemon',
'mmgen.tool',
'mmgen.tw',
'mmgen.tx',

View file

@ -174,7 +174,7 @@ def stop_test_daemons(*network_ids):
def test_daemons_ops(*network_ids,op):
if opt.no_daemon_autostart:
return
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
repo_root = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),os.pardir)))
silent = not opt.verbose and not (hasattr(opt,'exact_output') and opt.exact_output)
for network_id in network_ids:

View file

@ -3,7 +3,7 @@
import sys
from tests_header import repo_root
from mmgen.common import *
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
from mmgen.regtest import MMGenRegtest
action = g.prog_name.split('-')[0]

View file

@ -77,7 +77,7 @@ try: os.unlink(os.path.join(repo_root,'my.err'))
except: pass
from mmgen.common import *
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
from test.common import *
from test.test_py_d.common import *

View file

@ -299,7 +299,7 @@ class TestSuiteEthdev(TestSuiteBase,TestSuiteShared):
)
def __init__(self,trunner,cfgs,spawn):
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
self.rpc_port = TestDaemon(g.coin).rpc_port
os.environ['MMGEN_BOGUS_WALLET_DATA'] = ''
return TestSuiteBase.__init__(self,trunner,cfgs,spawn)

View file

@ -84,7 +84,7 @@ class TestSuiteRefAltcoin(TestSuiteRef,TestSuiteBase):
self.write_to_tmpfile(pwfile,dfl_wpasswd)
pf = joinpath(self.tmpdir,pwfile)
from mmgen.protocol import init_coin
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
for k in ('bch','eth','mm1','etc'):
coin,token = ('eth','mm1') if k == 'mm1' else (k,None)
ref_subdir = self._get_ref_subdir_by_coin(coin)

View file

@ -107,7 +107,7 @@ class unit_test(object):
('bch',False,'test/ref/460D4D-BCH[10.19764,tl=1320969600].rawtx') )
from mmgen.protocol import init_coin
from mmgen.tx import MMGenTX
from mmgen.test_daemon import TestDaemon
from mmgen.daemon import TestDaemon
print_info('test/ref/*rawtx','MMGen reference transactions')
for n,(coin,tn,fn) in enumerate(fns):
init_coin(coin,tn)