mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2025-02-18 22:08:45 +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() != '---']
|
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)
|
# test that all that are not --- are unique (no duplicate ids)
|
||||||
assert len(set(numbered_ids)) == len(numbered_ids) == MAX_ID
|
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()
|
id = pokemon.get_id()
|
||||||
assert len(id) == 3
|
assert len(id) == 3
|
||||||
assert isinstance(id, str)
|
assert isinstance(id, str)
|
||||||
|
|
Loading…
Add table
Reference in a new issue