Skip to content

Commit cc97d91

Browse files
rename TestGame to ExampleGame
1 parent 8fb4101 commit cc97d91

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/test_catalog.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pygambit.catalog import CatalogGame, PrisonersDilemma
55

66

7-
class TestGame(CatalogGame):
7+
class ExampleGame(CatalogGame):
88
"""
99
Test game description.
1010
"""
@@ -32,18 +32,18 @@ def test_catalog_game_not_instantiable(self):
3232

3333
def test_custom_game_subclass_extracts_metadata(self):
3434
"""Custom CatalogGame subclasses should extract metadata from _game()."""
35-
assert TestGame.num_players == 2
36-
assert TestGame.game_type == "efg"
37-
assert TestGame.title == "Test game F"
38-
assert TestGame.description == "Test game description."
35+
assert ExampleGame.num_players == 2
36+
assert ExampleGame.game_type == "efg"
37+
assert ExampleGame.title == "Test game F"
38+
assert ExampleGame.description == "Test game description."
3939

4040
def test_catalog_py_game_with_parameters(self):
4141
"""
4242
Custom CatalogGame subclass should return Game
4343
and support parameters.
4444
"""
45-
assert isinstance(TestGame(some_param=False), Game)
46-
assert isinstance(TestGame(some_param=True), Game)
45+
assert isinstance(ExampleGame(some_param=False), Game)
46+
assert isinstance(ExampleGame(some_param=True), Game)
4747

4848
def test_catalog_yml_game_instantiation(self):
4949
"""Custom CatalogGame subclasses reading from catalog.yml should return Game instances."""

0 commit comments

Comments
 (0)