Skip to content

Commit 0c57ec5

Browse files
committed
test: add hack in test_log.py to ignore consumeables sort_id
1 parent 123a639 commit 0c57ec5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/lua/test_log.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def normalize_step(step: dict[str, Any]) -> dict[str, Any]:
5454
for card in game_state["jokers"]["cards"]:
5555
card.pop("highlighted", None)
5656
card.pop("sort_id", None)
57+
if "consumeables" in game_state and "cards" in game_state["consumeables"]:
58+
for card in game_state["consumeables"]["cards"]:
59+
card.pop("highlighted", None)
60+
card.pop("sort_id", None)
5761

5862
# we don't care about the game_state_before when starting a run
5963
if step.get("function", {}).get("name") == "start_run":

0 commit comments

Comments
 (0)