From 75c5ebb57557122cdd5688839175ac3350d632c0 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 19 Nov 2016 22:28:34 +0100 Subject: [PATCH] Adapt to new return type of tsstats.log.parse_logs in this case using list- instead of dict-indexing --- tsstats/tests/test_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/tests/test_log.py b/tsstats/tests/test_log.py index c99e4f1..1bf275a 100644 --- a/tsstats/tests/test_log.py +++ b/tsstats/tests/test_log.py @@ -84,7 +84,7 @@ def test_log_client_online(): def test_parse_logs(): assert len(_parse_details(testlog_path)) ==\ - len(parse_logs(testlog_path)['']) + len(parse_logs(testlog_path)[0].clients) def test_parse_groups(): @@ -93,6 +93,6 @@ def test_parse_groups(): def test_parse_utf8(): - clients = parse_logs(testlog_path + '.utf8')[''] + clients = parse_logs(testlog_path + '.utf8')[0].clients render_template(clients, output_path) remove(output_path)