diff --git a/src/hades/constants.py b/src/hades/constants.py index d098a988..294de625 100644 --- a/src/hades/constants.py +++ b/src/hades/constants.py @@ -22,7 +22,6 @@ "ENEMY_GENERATION_DISTANCE", "ENEMY_RETRY_COUNT", "GAME_LOGGER", - "GameObjectType", "INDICATOR_BAR_BORDER_SIZE", "INDICATOR_BAR_DISTANCE", "INDICATOR_BAR_HEIGHT", @@ -32,6 +31,7 @@ "MAX_VELOCITY", "TOTAL_ENEMY_COUNT", "USABLE_TYPES", + "GameObjectType", ) diff --git a/src/hades/constructors.py b/src/hades/constructors.py index c5c83035..6e55fb4e 100644 --- a/src/hades/constructors.py +++ b/src/hades/constructors.py @@ -22,7 +22,7 @@ from hades_extensions.game_objects import ComponentBase -__all__ = ("ENEMY", "FLOOR", "GameObjectConstructor", "PLAYER", "POTION", "WALL") +__all__ = ("ENEMY", "FLOOR", "PLAYER", "POTION", "WALL", "GameObjectConstructor") class GameObjectConstructor(NamedTuple): diff --git a/tests/test_sprite.py b/tests/test_sprite.py index dbf036d6..28efa2f0 100644 --- a/tests/test_sprite.py +++ b/tests/test_sprite.py @@ -69,8 +69,7 @@ def test_hades_sprite_init() -> None: sprite = HadesSprite((0, GameObjectType.PLAYER), (10, 20), ["floor.png"]) assert sprite.position == (672.0, 1312.0) assert ( - repr(sprite) - == ")>" ) @@ -104,8 +103,7 @@ def test_animated_sprite_init() -> None: assert len(sprite.sprite_textures) == 1 assert len(sprite.sprite_textures[0]) == 2 assert ( - repr(sprite) - == ")>" ) @@ -122,8 +120,7 @@ def test_animated_sprite_multiple_textures() -> None: assert len(sprite.sprite_textures) == 2 assert len(sprite.sprite_textures[0]) == 2 assert ( - repr(sprite) - == ")>" )