From 45ac1d9b02e47e6c16c305385ed5ba8fb8600a5b Mon Sep 17 00:00:00 2001 From: ilkilic Date: Fri, 24 May 2024 15:40:26 +0200 Subject: [PATCH] fix unit tests --- tests/test_synapse/test_synapse_factory.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_synapse/test_synapse_factory.py b/tests/test_synapse/test_synapse_factory.py index a7f2c037..c9dbb961 100644 --- a/tests/test_synapse/test_synapse_factory.py +++ b/tests/test_synapse/test_synapse_factory.py @@ -60,8 +60,11 @@ def test_determine_synapse_location(self): # set afferent_section_pos self.syn_description[SynapseProperty.AFFERENT_SECTION_POS] = 1.2 res = SynapseFactory.determine_synapse_location(self.syn_description, self.cell) - assert res.location == 1.2 + assert res.location == 0.9999999 assert res.section.L == pytest.approx(9.530376893488256) + self.syn_description[SynapseProperty.AFFERENT_SECTION_POS] = 0 + res = SynapseFactory.determine_synapse_location(self.syn_description, self.cell) + assert res.location == 0.0000001 def test_synlocation_to_segx(self): ipt = 13