mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Prepare only Particl core by default.
This commit is contained in:
@@ -35,7 +35,7 @@ class Test(unittest.TestCase):
|
||||
super(Test, self).tearDownClass()
|
||||
|
||||
def test(self):
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path]
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path, '-withcoin=litecoin']
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
prepareSystem.main()
|
||||
|
||||
@@ -43,7 +43,7 @@ class Test(unittest.TestCase):
|
||||
self.assertTrue(os.path.exists(config_path))
|
||||
|
||||
logger.info('Test no overwrite')
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path]
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path, '-withcoin=litecoin']
|
||||
with patch('sys.stderr', new=StringIO()) as fake_stderr:
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
with self.assertRaises(SystemExit) as cm:
|
||||
|
||||
@@ -115,7 +115,7 @@ class Test(unittest.TestCase):
|
||||
'-bindir="{}"'.format(os.path.join(test_path, 'bin')),
|
||||
'-portoffset={}'.format(i),
|
||||
'-particl_mnemonic="{}"'.format(mnemonics[i]),
|
||||
'-regtest', '-withoutcoin=litecoin', '-withcoin=monero']
|
||||
'-regtest', '-withcoin=monero']
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
prepareSystem.main()
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class Test(unittest.TestCase):
|
||||
'-bindir="{}"'.format(os.path.join(test_path, 'bin')),
|
||||
'-portoffset={}'.format(i),
|
||||
'-particl_mnemonic="{}"'.format(mnemonics[0]),
|
||||
'-regtest', '-withoutcoin=litecoin', '-withcoin=monero,bitcoin']
|
||||
'-regtest', '-withcoin=monero,bitcoin']
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
prepareSystem.main()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user