From 7e8f3b31bbd43e8da487e884ab663d6ff7633cbe Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 2 Feb 2018 12:34:03 +0100 Subject: [PATCH] Test parsing results are consistent independent from using cache or not --- tsstats/tests/test_cache.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tsstats/tests/test_cache.py b/tsstats/tests/test_cache.py index c32e845..0f24735 100644 --- a/tsstats/tests/test_cache.py +++ b/tsstats/tests/test_cache.py @@ -73,3 +73,18 @@ def test_cache_integration(cache_path): testlog_path, online_dc=False, cache_path=cache_path )) assert first_run == second_run + + +def test_same_result_without_cache(cache_path): + first_run = list(parse_logs( + testlog_path, online_dc=False + )) + second_run = list(parse_logs( + testlog_path, online_dc=False, cache_path=cache_path + )) + third_run = list(parse_logs( + testlog_path, online_dc=False, cache_path=cache_path + )) + assert first_run == second_run + assert first_run == third_run + assert second_run == third_run