Fix mobile broom flight with D-pad & touch-action, add Chamber II McGonagalls Wizard Chess
This commit is contained in:
+13
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user