diff --git a/tsstats/tests/test_client.py b/tsstats/tests/test_client.py index 263703e..7086ab6 100644 --- a/tsstats/tests/test_client.py +++ b/tsstats/tests/test_client.py @@ -52,7 +52,7 @@ def test_client_nick(clients): def test_clients_iter(clients): clients, cl1, cl2, uidcl1, uidcl2 = clients - client_list = list(iter(clients)) + client_list = list(clients.values()) assert cl1 in client_list assert cl2 in client_list assert uidcl1 in client_list @@ -62,4 +62,4 @@ def test_clients_iter(clients): def test_clients_delete(clients): clients, cl1, _, _, _ = clients del clients['1'] - assert cl1 not in clients + assert '1' not in clients diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py index 1a070f7..945d778 100644 --- a/tsstats/tests/test_template.py +++ b/tsstats/tests/test_template.py @@ -47,7 +47,7 @@ def test_onlinetime(soup): # find corresponding client-object client = list(filter( lambda c: c.nick == nick and c.onlinetime > pendulum.Interval(), - clients + clients.values() )) # assert existence assert client