Defines bitcoind fixture session-wise

This commit is contained in:
Sergi Delgado Segura
2019-10-09 14:05:15 +01:00
parent e7530a53dc
commit f59c621cc0

View File

@@ -21,7 +21,7 @@ WRONG_TYPES_NO_STR = [[], urandom(32), 3.2, 2.0, (), object, {}, object()]
logging.getLogger().disabled = True
@pytest.fixture(autouse=True)
@pytest.fixture(autouse=True, scope='session')
def run_bitcoind():
bitcoind_thread = Thread(target=run_simulator)
bitcoind_thread.daemon = True