mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: _input_valid cache not clear in between tests
Solution: clear cache in bdb fixture
This commit is contained in:
parent
1333d565a3
commit
85eb0b12e1
@ -145,6 +145,7 @@ def _bdb(_setup_database, _configure_bigchaindb):
|
|||||||
from bigchaindb.backend import connect
|
from bigchaindb.backend import connect
|
||||||
from .utils import flush_db
|
from .utils import flush_db
|
||||||
from bigchaindb.common.memoize import to_dict, from_dict
|
from bigchaindb.common.memoize import to_dict, from_dict
|
||||||
|
from bigchaindb.models import Transaction
|
||||||
conn = connect()
|
conn = connect()
|
||||||
yield
|
yield
|
||||||
dbname = config['database']['name']
|
dbname = config['database']['name']
|
||||||
@ -152,6 +153,7 @@ def _bdb(_setup_database, _configure_bigchaindb):
|
|||||||
|
|
||||||
to_dict.cache_clear()
|
to_dict.cache_clear()
|
||||||
from_dict.cache_clear()
|
from_dict.cache_clear()
|
||||||
|
Transaction._input_valid.cache_clear()
|
||||||
|
|
||||||
|
|
||||||
# We need this function to avoid loading an existing
|
# We need this function to avoid loading an existing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user