Skip to content

Commit 3f2303a

Browse files
add test_games_excludes_base_classes
1 parent 173098f commit 3f2303a

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

tests/test_catalog.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,8 @@ def test_games_filter_by_custom_metadata(self):
8282
assert hasattr(game_class, "test_suite")
8383
assert game_class.test_suite is True
8484

85-
# def test_games_all_filter(self):
86-
# """games(game_type='all') should return all games."""
87-
# all_games = gbt.catalog.games(game_type="all")
88-
# nfg_games = gbt.catalog.games(game_type="nfg")
89-
# efg_games = gbt.catalog.games(game_type="efg")
90-
# # All games should be union of NFG and EFG
91-
# assert len(all_games) == len(set(nfg_games + efg_games))
92-
93-
# def test_games_nonexistent_filter(self):
94-
# """games() with non-matching filters should return empty list."""
95-
# result = gbt.catalog.games(num_players=999)
96-
# assert result == []
97-
98-
# def test_games_excludes_base_classes(self):
99-
# """games() should not include base classes like CatalogGameFromContrib."""
100-
# result = gbt.catalog.games()
101-
# assert "CatalogGame" not in result
102-
# assert "CatalogGameFromContrib" not in result
85+
def test_games_excludes_base_classes(self):
86+
"""games() should not include base classes like CatalogGameFromContrib."""
87+
result = catalog.games()
88+
assert "CatalogGame" not in result
89+
assert "CatalogGameFromContrib" not in result

0 commit comments

Comments
 (0)