mirror of https://github.com/nucypher/nucypher.git
For all tests - use debug db, not the 'production db'
parent
abfbdc7c16
commit
a6be3fb1d9
|
@ -0,0 +1,6 @@
|
|||
import nkms.db
|
||||
|
||||
|
||||
def pytest_runtest_setup(item):
|
||||
# Monkey-patching for tests so that we don't overwrite the default db
|
||||
nkms.db.DB_NAME = 'debug-rekeys-db'
|
|
@ -1,11 +1,7 @@
|
|||
import nkms.db
|
||||
from nkms.db import DB
|
||||
import shutil
|
||||
import pytest
|
||||
|
||||
# Monkey-patching for tests so that we don't overwrite the default db
|
||||
nkms.db.DB_NAME = 'debug-rekeys-db'
|
||||
|
||||
|
||||
def test_db():
|
||||
db = DB()
|
||||
|
|
Loading…
Reference in New Issue