Fix mobile broom flight with D-pad & touch-action, add Chamber II McGonagalls Wizard Chess

This commit is contained in:
Maxi
2026-09-22 19:24:26 +02:00
parent 9f5e5085ec
commit efb54befcc
10 changed files with 793 additions and 116 deletions
+13 -1
View File
@@ -15,6 +15,10 @@ def test_endpoints():
assert res.status_code == 200
assert "Der Besenflug" in res.text
res = client.get("/chess")
assert res.status_code == 200
assert "McGonagalls Zauberschach" in res.text
res = client.get("/bottles")
assert res.status_code == 200
assert "Snapes Flaschenrätsel" in res.text
@@ -50,6 +54,14 @@ def test_endpoints():
assert data["success"] is True
assert "silver_key" in data["state"]["inventory"]
# Test API Chess complete (adds chess_knight)
res = client.post("/api/chess/complete")
assert res.status_code == 200
chess_data = res.json()
assert chess_data["success"] is True
assert chess_data["new_item"]["id"] == "chess_knight"
assert "chess_knight" in chess_data["state"]["inventory"]
# Test API Bottles drink: Ahead / Black fire (Bottle 3 - Dwarf, adds philosophers_stone)
res = client.post("/api/bottles/drink", json={"bottle": 3, "gate": "ahead"})
assert res.status_code == 200
@@ -63,7 +75,7 @@ def test_endpoints():
assert res.status_code == 200
assert res.json()["success"] is True
print("ALL INVENTORY & GAMEPLAY TESTS PASSED! 🎒✨")
print("ALL TESTS (INCLUDING CHESS & MOBILE FLIGHT) PASSED! ♟️🧹✨")
if __name__ == "__main__":
test_endpoints()