Fix filter test

This commit is contained in:
Mariano Sorgente 2020-03-12 13:44:40 +09:00
parent 94c6be1d04
commit 7b00daaeb3
No known key found for this signature in database
GPG Key ID: 0F866338C369278C
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ from chiabip158 import PyBIP158
from src.wallet.wallet_node import WalletNode
from tests.setup_nodes import setup_two_nodes, test_constants, bt
from src.util.config import load_config
@pytest.fixture(scope="module")
@ -24,8 +25,9 @@ class TestFilter:
@pytest.mark.asyncio
async def test_basic_filter_test(self, two_nodes):
sk = bytes(ExtendedPrivateKey.from_seed(b"")).hex()
config = load_config("config.yaml", "wallet")
key_config = {"wallet_sk": sk}
wallet_node = await WalletNode.create({}, key_config)
wallet_node = await WalletNode.create(config, key_config)
wallet = wallet_node.wallet
await wallet_node.wallet_state_manager.clear_all_stores()