Use parse_logs instead of _parse_details
This commit is contained in:
parent
c79dd08bc0
commit
1c224fa0ee
|
@ -1,7 +1,7 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from tsstats.client import Client, Clients
|
from tsstats.client import Client, Clients
|
||||||
from tsstats.log import _parse_details
|
from tsstats.log import parse_logs
|
||||||
from tsstats.utils import transform_pretty_identmap
|
from tsstats.utils import transform_pretty_identmap
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,12 +55,12 @@ def test_transform_pretty_identmap(test_input, expected):
|
||||||
|
|
||||||
|
|
||||||
def test_ident_map_wrong_identifier():
|
def test_ident_map_wrong_identifier():
|
||||||
clients = _parse_details(
|
clients = list(parse_logs(
|
||||||
'tsstats/tests/res/test.log.identmap_wrong_identifier', ident_map={
|
'tsstats/tests/res/test.log.identmap_wrong_identifier', ident_map={
|
||||||
'2': '1',
|
'2': '1',
|
||||||
'3': '1'
|
'3': '1'
|
||||||
}
|
}
|
||||||
)
|
))[0].clients
|
||||||
client = clients.get('1')
|
client = clients.get('1')
|
||||||
# assert client exists
|
# assert client exists
|
||||||
assert client
|
assert client
|
||||||
|
|
Loading…
Reference in New Issue