mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Use unique db names in tests to allow xdist
This commit is contained in:
parent
5c070fa82e
commit
52e9d13d89
@ -6,12 +6,16 @@ Tasks:
|
||||
2. delete test database after running the tests
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
DB_NAME = 'bigchain_test_{}'.format(os.getpid())
|
||||
|
||||
config = {
|
||||
'database': {
|
||||
'name': 'bigchain_test'
|
||||
'name': DB_NAME
|
||||
},
|
||||
'keypair': {
|
||||
'private': '3i2FDXp87N9ExXSvWxqBAw9EgzoxxGTQNKbtxmWBpTyL',
|
||||
@ -30,7 +34,7 @@ def restore_config(request, node_config):
|
||||
config_utils.dict_config(node_config)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture(scope='module')
|
||||
def node_config():
|
||||
return config
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user