move invalid-log-test from test_general.py to test_log.py
This commit is contained in:
parent
3f2ccd3ac6
commit
3112311f7e
|
@ -40,8 +40,3 @@ def test_debug_log():
|
|||
logger.setLevel(logging.INFO)
|
||||
open('debug.txt')
|
||||
remove('debug.txt')
|
||||
|
||||
|
||||
def test_parse_broken():
|
||||
with pytest.raises(exceptions.InvalidLog):
|
||||
parse_logs('tsstats/tests/res/test.log.broken')
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from tsstats.exceptions import InvalidLog
|
||||
from tsstats.log import parse_logs
|
||||
|
||||
|
||||
|
@ -30,3 +32,8 @@ def test_log_bans(clients):
|
|||
|
||||
def test_log_pbans(clients):
|
||||
assert clients['2'].pbans == 1
|
||||
|
||||
|
||||
def test_log_invalid():
|
||||
with pytest.raises(InvalidLog):
|
||||
parse_logs('tsstats/tests/res/test.log.broken')
|
||||
|
|
Loading…
Reference in New Issue