From 6c2c5adcb9621e10fd479b6a819026e56ce4cb02 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:12:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_agent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_agent.py b/tests/test_agent.py index 5e6e7eaf58e..2a3a41e4036 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -252,14 +252,15 @@ def test_agentset_select_by_type(): all_agents = agentset.select() assert len(all_agents) == len(mixed_agents) + def test_agentset_shuffle(): model = Model() test_agents = [TestAgent(model.next_id(), model) for _ in range(4)] agentset = AgentSet(test_agents, model=model) agentset = agentset.shuffle() - assert not all([a1==a2 for a1, a2 in zip(test_agents, agentset)]) + assert not all([a1 == a2 for a1, a2 in zip(test_agents, agentset)]) agentset = AgentSet(test_agents, model=model) agentset.shuffle(inplace=True) - assert not all([a1 == a2 for a1, a2 in zip(test_agents, agentset)]) \ No newline at end of file + assert not all([a1 == a2 for a1, a2 in zip(test_agents, agentset)])