From 468bfcd22d645176e61e2bb58881390d035a8498 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 21 Jun 2016 18:23:35 +0200 Subject: [PATCH] fix log-tests by renaming all occurences of parse_log to _parse_details * additionally remove deprecated test_multiple-test --- tsstats/tests/test_log.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tsstats/tests/test_log.py b/tsstats/tests/test_log.py index e916f61..328c033 100644 --- a/tsstats/tests/test_log.py +++ b/tsstats/tests/test_log.py @@ -67,18 +67,13 @@ def test_log_bundle(logs, bundled): def test_log_invalid(): with pytest.raises(InvalidLog): - parse_log('tsstats/tests/res/test.log.broken') - - -def test_log_multiple(): - assert len(parse_log(testlog_path, online_dc=False)) == \ - len(parse_logs(testlog_path, online_dc=False)) + _parse_details('tsstats/tests/res/test.log.broken') @pytest.mark.slowtest def test_log_client_online(): - clients = parse_log(testlog_path) + clients = _parse_details(testlog_path) old_onlinetime = int(clients['1'].onlinetime.total_seconds()) sleep(2) - clients = parse_log(testlog_path) + clients = _parse_details(testlog_path) assert int(clients['1'].onlinetime.total_seconds()) == old_onlinetime + 2