We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdcdb34 commit 55602aeCopy full SHA for 55602ae
tests/data/items.slp
2.11 MB
tests/test_peppi_py.py
@@ -98,11 +98,11 @@ def test_basic_game():
98
99
def test_items_support():
100
# Replay with a Peach
101
- game = read_slippi('../peppi/tests/data/items.slp')
+ game = read_slippi(Path(__file__).parent.joinpath('data/items.slp').as_posix())
102
+ assert game.frames is not None
103
+ assert game.frames.items is not None
104
- item_types = Counter()
- for items in game.frames.items:
105
- item_types.update(items.type.to_pylist())
+ item_types = Counter(game.frames.items.type.values.to_numpy())
106
107
# Peach turnip appears on 513 frames.
108
assert len(item_types) == 1
0 commit comments