Skip to content

Commit

Permalink
[fix] test_random
Browse files Browse the repository at this point in the history
  • Loading branch information
jofmi committed Mar 11, 2021
1 parent af14d27 commit 35f59bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def test_random():
assert agents.random()[0].id == 2

# Agentlist with no model defined
np.random.seed(1)
# (no seed control without model, test can only check if no errors)
agents1 = ap.AgentList([1, 2, 3])
assert agents1.random()[0] == 2
agents1.random()


def test_sort():
Expand Down

0 comments on commit 35f59bb

Please sign in to comment.