Browse Source

fix tests

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 5 years ago
parent
commit
098636c69a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 17
      electrum/tests/test_wallet_vertical.py

17
electrum/tests/test_wallet_vertical.py

@ -1949,6 +1949,23 @@ class TestWalletHistory_EvilGapLimit(TestCaseForTestnet):
"268fce617aaaa4847835c2212b984d7b7741fdab65de22813288341819bc5656": "010000000001014f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0100000000fdffffff0260e316000000000016001445e9879cf7cd5b4a15df7ddcaf5c6dca0e1508bacc242600000000001600141bc12094a4475dcfbf24f9920dafddf9104ca95b02483045022100ae3618912f341fefee11b67e0047c47c88c4fa031561c3fafe993259dd14d846022056fa0a5b5d8a65942fa68bcc2f848fd71fa455ba42bc2d421b67eb49ba62aa4e01210394d8f4f06c2ea9c569eb050c897737a7315e7f2104d9b536b49968cc89a1f11033181400",
}
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.electrum_path = tempfile.mkdtemp()
cls.config = SimpleConfig({
'electrum_path': cls.electrum_path,
'skipmerklecheck': True, # needed for Synchronizer to generate new addresses without SPV
})
@classmethod
def tearDownClass(cls):
super().tearDownClass()
shutil.rmtree(cls.electrum_path)
# horrible hack. create a new config to ensure custom settings
# don't get persisted in the "singleton" config:
SimpleConfig()
@classmethod
def create_wallet(cls):
ks = keystore.from_xpub('vpub5Vhmk4dEJKanDTTw6immKXa3thw45u3gbd1rPYjREB6viP13sVTWcH6kvbR2YeLtGjradr6SFLVt9PxWDBSrvw1Dc1nmd3oko3m24CQbfaJ')

Loading…
Cancel
Save