Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamamer20 committed Aug 24, 2024
1 parent 89b793b commit cf1f0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/polars/test_grid_polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def test_get_directions(
grid_moore.place_agents(fix2_AgentSetPolars, [[0, 1], [0, 2], [1, 0], [1, 2]])
agents = grid_moore.agents.sort("agent_id")

assert grid_moore.agents["agent_id"].to_list() == [0, 1, 4, 5, 6, 7]
assert grid_moore.agents["dim_0"].to_list() == [0, 1, 0, 0, 1, 1]
assert grid_moore.agents["dim_1"].to_list() == [0, 1, 1, 2, 0, 2]
assert agents["agent_id"].to_list() == [0, 1, 4, 5, 6, 7]
assert agents["dim_0"].to_list() == [0, 1, 0, 0, 1, 1]
assert agents["dim_1"].to_list() == [0, 1, 1, 2, 0, 2]
dir = grid_moore.get_directions(agents0=[0, 1], agents1=[4, 5])
print(dir)
assert isinstance(dir, pl.DataFrame)
Expand Down

0 comments on commit cf1f0bb

Please sign in to comment.