Skip to content

Commit e3910fa

Browse files
committed
test(api): change card_key to center_key in shop jokers
1 parent a20ab63 commit e3910fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/lua/test_api_functions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,21 +764,21 @@ def test_shop_jokers_structure(self, tcp_client: socket.socket) -> None:
764764
assert "label" in card
765765
assert "sell_cost" in card
766766

767-
# Verify card config has card_key
768-
assert "card_key" in card["config"]
769-
assert isinstance(card["config"]["card_key"], str)
767+
# Verify card config has center_key
768+
assert "center_key" in card["config"]
769+
assert isinstance(card["config"]["center_key"], str)
770770

771771
# Verify ability has set field
772772
assert "set" in card["ability"]
773773
assert isinstance(card["ability"]["set"], str)
774774

775775
# Verify we have expected cards from the reference game state
776-
card_keys = [card["config"]["card_key"] for card in shop_jokers["cards"]]
776+
center_key = [card["config"]["center_key"] for card in shop_jokers["cards"]]
777777
card_labels = [card["label"] for card in shop_jokers["cards"]]
778778

779779
# Should contain Burglar joker and Jupiter planet card based on reference
780-
assert "j_burglar" in card_keys
781-
assert "c_jupiter" in card_keys
780+
assert "j_burglar" in center_key
781+
assert "c_jupiter" in center_key
782782
assert "Burglar" in card_labels
783783
assert "Jupiter" in card_labels
784784

0 commit comments

Comments
 (0)