Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["test"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ black~=26.5.1
pylint~=4.0.2
flake8~=7.3.0
mypy~=2.3.0
pillow~=12.3.0
pillow~=12.3.0
pytest~=9.1.1
2 changes: 1 addition & 1 deletion test/floor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setUp(self) -> None:
self._floor_with_rooms.add_room(5, 5)

def test_to_json(self):
expected = '{\n "_rooms": []\n}'
expected = '{\n "_seed": "1",\n "_rooms": []\n}'
self.assertEqual(expected, self._floor.to_json(1))

def test_contains_room(self):
Expand Down
11 changes: 6 additions & 5 deletions test/globals_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_door_faces(self):
self.assertEqual(expected, globals.DoorFace.list())

def test_room_types(self):
expected = [0, 1, 2, 3, 4, 5, 6]
expected = [0, 1, 2, 3, 4, 5, 6, 7]
self.assertEqual(expected, RoomType.list())

def test_special_rooms(self):
Expand All @@ -62,15 +62,16 @@ def test_door_color(self):

def test_room_colors(self):
expected = {
RoomType.NORMAL_ROOM: Color.VIOLET,
RoomType.DEAD_END: Color.VIOLET,
RoomType.NORMAL_ROOM: Color.LIGHT_GRAY,
RoomType.DEAD_END: Color.LIGHT_GRAY,
RoomType.ITEM_ROOM: Color.GREEN,
RoomType.SHOP_ROOM: Color.YELLOW,
RoomType.START_ROOM: Color.ORANGE,
RoomType.TELEPORT_ROOM: Color.GRAY,
RoomType.TELEPORT_ROOM: Color.VIOLET,
RoomType.BOSS_ROOM: Color.RED,
RoomType.SECRET_ROOM: Color.BLUE,
}
self.assertEqual(expected, globals.Room_Colors)
self.assertEqual(expected, room_type.room_colors)

def test_room_width(self):
self.assertEqual(120, globals.ROOM_WIDTH)
Expand Down