fix log-tests by renaming all occurences of parse_log to _parse_details
* additionally remove deprecated test_multiple-test
This commit is contained in:
parent
c132c17661
commit
468bfcd22d
|
@ -67,18 +67,13 @@ def test_log_bundle(logs, bundled):
|
||||||
|
|
||||||
def test_log_invalid():
|
def test_log_invalid():
|
||||||
with pytest.raises(InvalidLog):
|
with pytest.raises(InvalidLog):
|
||||||
parse_log('tsstats/tests/res/test.log.broken')
|
_parse_details('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))
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.slowtest
|
@pytest.mark.slowtest
|
||||||
def test_log_client_online():
|
def test_log_client_online():
|
||||||
clients = parse_log(testlog_path)
|
clients = _parse_details(testlog_path)
|
||||||
old_onlinetime = int(clients['1'].onlinetime.total_seconds())
|
old_onlinetime = int(clients['1'].onlinetime.total_seconds())
|
||||||
sleep(2)
|
sleep(2)
|
||||||
clients = parse_log(testlog_path)
|
clients = _parse_details(testlog_path)
|
||||||
assert int(clients['1'].onlinetime.total_seconds()) == old_onlinetime + 2
|
assert int(clients['1'].onlinetime.total_seconds()) == old_onlinetime + 2
|
||||||
|
|
Loading…
Reference in New Issue