Adapt to new return type of tsstats.log.parse_logs

in this case using list- instead of dict-indexing
This commit is contained in:
Thor77 2016-11-19 22:28:34 +01:00
parent f0dc95a583
commit 75c5ebb575
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ def test_log_client_online():
def test_parse_logs(): def test_parse_logs():
assert len(_parse_details(testlog_path)) ==\ assert len(_parse_details(testlog_path)) ==\
len(parse_logs(testlog_path)['']) len(parse_logs(testlog_path)[0].clients)
def test_parse_groups(): def test_parse_groups():
@ -93,6 +93,6 @@ def test_parse_groups():
def test_parse_utf8(): def test_parse_utf8():
clients = parse_logs(testlog_path + '.utf8')[''] clients = parse_logs(testlog_path + '.utf8')[0].clients
render_template(clients, output_path) render_template(clients, output_path)
remove(output_path) remove(output_path)