move invalid-log-test from test_general.py to test_log.py

This commit is contained in:
Thor77 2016-05-19 21:35:39 +02:00
parent 3f2ccd3ac6
commit 3112311f7e
2 changed files with 7 additions and 5 deletions

View File

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

View File

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