Skip to content

Commit 6342fe1

Browse files
update test_catalog_games to check for family games
1 parent d8129c5 commit 6342fe1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_catalog.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def test_catalog_games(game_slugs, all_games):
5151
"""Test games() function returns df of game slugs and titles."""
5252
assert isinstance(all_games, pd.DataFrame)
5353

54-
# The games() function should return exactly the set of slugs found above
55-
assert set(all_games["Game"]) == game_slugs
54+
# The games() function should return set of slugs plus family games
55+
fg = gbt.catalog.family_games().keys()
56+
assert set(all_games["Game"]) == game_slugs.union(fg)
5657

5758
# Test that standard columns are present
5859
assert "Game" in all_games.columns

0 commit comments

Comments
 (0)