From 1c224fa0eee1038c8c1e0205cc689f5559e98d7e Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 9 Sep 2017 18:34:50 +0200 Subject: [PATCH] Use parse_logs instead of _parse_details --- tsstats/tests/test_ident_map.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsstats/tests/test_ident_map.py b/tsstats/tests/test_ident_map.py index 4aa63c6..9615acc 100644 --- a/tsstats/tests/test_ident_map.py +++ b/tsstats/tests/test_ident_map.py @@ -1,7 +1,7 @@ import pytest 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 @@ -55,12 +55,12 @@ def test_transform_pretty_identmap(test_input, expected): def test_ident_map_wrong_identifier(): - clients = _parse_details( + clients = list(parse_logs( 'tsstats/tests/res/test.log.identmap_wrong_identifier', ident_map={ '2': '1', '3': '1' } - ) + ))[0].clients client = clients.get('1') # assert client exists assert client