1
0

fix tests for travis. follow-up 68d8919416

This commit is contained in:
SomberNight
2018-04-27 21:55:50 +02:00
parent ea55d886b7
commit fad25af204

View File

@@ -1,5 +1,7 @@
import unittest import unittest
from unittest import mock from unittest import mock
import shutil
import tempfile
import lib import lib
from lib import storage, bitcoin, keystore, constants from lib import storage, bitcoin, keystore, constants
@@ -318,7 +320,16 @@ class TestWalletKeystoreAddressIntegrityForTestnet(TestCaseForTestnet):
class TestWalletSending(TestCaseForTestnet): class TestWalletSending(TestCaseForTestnet):
config = SimpleConfig() @classmethod
def setUpClass(cls):
super().setUpClass()
cls.electrum_path = tempfile.mkdtemp()
cls.config = SimpleConfig({'electrum_path': cls.electrum_path})
@classmethod
def tearDownClass(cls):
super().tearDownClass()
shutil.rmtree(cls.electrum_path)
def create_standard_wallet_from_seed(self, seed_words): def create_standard_wallet_from_seed(self, seed_words):
ks = keystore.from_seed(seed_words, '', False) ks = keystore.from_seed(seed_words, '', False)