From 85eb0b12e159209b9cdb730ca33332bd44532d1e Mon Sep 17 00:00:00 2001 From: Vanshdeep Singh Date: Tue, 4 Sep 2018 12:22:05 +0200 Subject: [PATCH] Problem: `_input_valid` cache not clear in between tests Solution: clear cache in bdb fixture --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index e55ad9df..12cd65e3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -145,6 +145,7 @@ def _bdb(_setup_database, _configure_bigchaindb): from bigchaindb.backend import connect from .utils import flush_db from bigchaindb.common.memoize import to_dict, from_dict + from bigchaindb.models import Transaction conn = connect() yield dbname = config['database']['name'] @@ -152,6 +153,7 @@ def _bdb(_setup_database, _configure_bigchaindb): to_dict.cache_clear() from_dict.cache_clear() + Transaction._input_valid.cache_clear() # We need this function to avoid loading an existing