From af608f175f2b17bf14580374105eb706109a3f17 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Thu, 1 Feb 2018 21:01:01 +0100 Subject: [PATCH] Make sure each test gets its own cache by appending testfunction-name to cache_path --- tsstats/tests/test_cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsstats/tests/test_cache.py b/tsstats/tests/test_cache.py index d627321..85f275c 100644 --- a/tsstats/tests/test_cache.py +++ b/tsstats/tests/test_cache.py @@ -13,7 +13,9 @@ from tsstats.tests.test_log import testlog_path @pytest.fixture def cache_path(request): - cache_path = 'tsstats/tests/res/tsstats.cache' + cache_path = 'tsstats/tests/res/tsstats.cache.{}'.format( + request.function.__name__ + ) def clean(): if os.path.exists(cache_path):