mirror of
https://github.com/Thor77/TeamspeakStats.git
synced 2025-07-07 07:58:43 -04:00
add debuglog-test
This commit is contained in:
parent
266ff582db
commit
f1b9d2cf65
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
from tsstats import parse_logs
|
from tsstats import parse_logs
|
||||||
from sys import stderr
|
from os import remove
|
||||||
|
|
||||||
clients = parse_logs('tests/res/test.log')
|
clients = parse_logs('tests/res/test.log')
|
||||||
|
|
||||||
|
@ -34,3 +34,9 @@ def test_parse_bans():
|
||||||
|
|
||||||
def test_parse_pbans():
|
def test_parse_pbans():
|
||||||
assert clients['2'].pbans == 1
|
assert clients['2'].pbans == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_debug_log():
|
||||||
|
clients = parse_logs('tests/res/test.log', file_log=True)
|
||||||
|
open('debug.txt')
|
||||||
|
remove('debug.txt')
|
||||||
|
|
Loading…
Add table
Reference in a new issue