Adapt to new return type of tsstats.log.parse_logs
in this case using list- instead of dict-indexing
This commit is contained in:
parent
f0dc95a583
commit
75c5ebb575
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue