mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-27 06:10:29 +00:00
Database().get_all() --> numbered_ids
This commit is contained in:
parent
d79dec81dd
commit
aa16c65400
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue