Skip to content

Commit 5edfde7

Browse files
committed
test: exclude non-deterministic fields from diff
1 parent e72c78e commit 5edfde7

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
@@ -50,6 +50,10 @@ def normalize_step(step: dict[str, Any]) -> dict[str, Any]:
5050
for card in game_state["hand"]["cards"]:
5151
card.pop("highlighted", None)
5252
card.pop("sort_id", None)
53+
if "jokers" in game_state and "cards" in game_state["jokers"]:
54+
for card in game_state["jokers"]["cards"]:
55+
card.pop("highlighted", None)
56+
card.pop("sort_id", None)
5357

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

0 commit comments

Comments
 (0)