Skip to content

Commit

Permalink
fix last tool tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBer78 committed Dec 19, 2024
1 parent f81ab8d commit 15c8f4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions swarm_copy_tests/tools/test_electrophys_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ async def test_arun(self, httpx_mock):
)
response = await tool.arun()
assert isinstance(response, dict)
assert len(response.keys()) == 1
assert len(response["feature_dict"].keys()) == 1
assert (
len(response["step_0"].keys())
len(response["feature_dict"]["step_0"].keys())
== 2 # mean_frequency + 1 for stimulus current added manually
)

Expand Down Expand Up @@ -112,9 +112,9 @@ async def test_arun_with_amplitude(self, httpx_mock):
)
response = await tool.arun()
assert isinstance(response, dict)
assert len(response.keys()) == 1
assert len(response["feature_dict"].keys()) == 1
assert (
len(response["step_0.25"].keys())
len(response["feature_dict"]["step_0.25"].keys())
== 2 # mean_frequency + 1 for stimulus current added manually
)

Expand Down Expand Up @@ -163,9 +163,9 @@ async def test_arun_without_stimuli_types(self, httpx_mock):
# Without stimuli types and calculated features
response = await tool.arun()
assert isinstance(response, dict)
assert len(response.keys()) == 1
assert len(response["feature_dict"].keys()) == 1
assert (
len(response["step_0"].keys())
len(response["feature_dict"]["step_0"].keys())
== len(list(CALCULATED_FEATURES.__args__[0].__args__))
+ 1 # 1 for stimulus current added manually
)
Expand Down
2 changes: 1 addition & 1 deletion swarm_copy_tests/tools/test_morphology_features_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def test_arun(self, httpx_mock):

response = await tool.arun()
assert isinstance(response[0], dict)
assert len(response[0]) == 23
assert len(response[0]["feature_dict"]) == 23

@pytest.mark.asyncio
async def test_arun_errors_404(self, httpx_mock):
Expand Down

0 comments on commit 15c8f4b

Please sign in to comment.