fix log-tests by renaming all occurences of parse_log to _parse_details

* additionally remove deprecated test_multiple-test
This commit is contained in:
Thor77 2016-06-21 18:23:35 +02:00
parent c132c17661
commit 468bfcd22d
1 changed files with 3 additions and 8 deletions

View File

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