Skip to content
Snippets Groups Projects
Commit 8bbb49fd authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

specify cache_name (i.e location where it is saved)

parent be6bd6c7
Branches
No related tags found
1 merge request!57Speedup tests
......@@ -75,5 +75,5 @@ class TestCaseWithRequestsCache(TestCase):
class TransactionTestCaseWithRequestsCache(TransactionTestCase):
def setUp(self):
backend = requests_cache.SQLiteCache(use_memory=True)
requests_cache.install_cache(os.path.join(settings.PERSISTENT_DIR, "tests_http_cache"), backend=backend)
backend = requests_cache.SQLiteCache(os.path.join(settings.PERSISTENT_DIR, "tests_http_cache"), use_memory=True)
requests_cache.install_cache(backend=backend)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment