From aa16c6540045b41c2bd930fea7f1fe367e158faf Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 4 Jul 2017 07:38:20 +0200 Subject: [PATCH] Database().get_all() --> numbered_ids --- test_database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_database.py b/test_database.py index 800fe0c..c63d3a0 100644 --- a/test_database.py +++ b/test_database.py @@ -131,7 +131,7 @@ def test_ids(): numbered_ids = [p.get_id() for p in db.get_all() if p.get_id() != '---'] # test that all that are not --- are unique (no duplicate ids) assert len(set(numbered_ids)) == len(numbered_ids) == MAX_ID - for pokemon in Database().get_all(): + for pokemon in numbered_ids: id = pokemon.get_id() assert len(id) == 3 assert isinstance(id, str)