Skip to content

Commit

Permalink
Update test_cell_space.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 29, 2024
1 parent 002b5d9 commit 4d86d9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_cell_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def test_empties_space():

model = Model()
for i in range(8):
grid._cells[i].add_agent(CellAgent(i, model))
grid._cells[i].add_agent(CellAgent(model))

cell = grid.select_random_empty_cell()
assert cell.coordinate in {8, 9}
Expand All @@ -409,7 +409,7 @@ def test_cell():

# add_agent
model = Model()
agent = CellAgent(1, model)
agent = CellAgent(model)

cell1.add_agent(agent)
assert agent in cell1.agents
Expand Down Expand Up @@ -452,9 +452,9 @@ def test_cell_collection():

cells = collection.cells
model = Model()
cells[0].add_agent(CellAgent(1, model))
cells[3].add_agent(CellAgent(2, model))
cells[7].add_agent(CellAgent(3, model))
cells[0].add_agent(CellAgent(model))
cells[3].add_agent(CellAgent(model))
cells[7].add_agent(CellAgent(model))
agents = collection.agents
assert len(list(agents)) == 3

Expand Down

0 comments on commit 4d86d9d

Please sign in to comment.