Test parsing results are consistent

independent from using cache or not
This commit is contained in:
Thor77 2018-02-02 12:34:03 +01:00
parent 97425aa08d
commit 7e8f3b31bb
1 changed files with 15 additions and 0 deletions

View File

@ -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