Skip to content

Commit e543785

Browse files
committed
Fix breaking tests for stair length calculations with custom zero tread run (f52aafd)
In both cases it was providing arguments `(0,0)`, but was assuming only one tread will be zeroed.
1 parent 3617d11 commit e543785

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bonsai/test/tool/test_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ def test_run(self):
179179
# zero-width first tread
180180
pset_data = pset_data_base.copy()
181181
calculated_data = calculated_data_base.copy()
182-
pset_data["custom_first_last_tread_run"] = (0.0, 0.0)
182+
pset_data["custom_first_last_tread_run"] = (0.0, None)
183183
calculated_data["Length"] = 0.9 # Only 3 treads at 0.3 each
184184
self.compare_data(pset_data, calculated_data)
185185

186186
# zero-width last tread
187187
pset_data = pset_data_base.copy()
188188
calculated_data = calculated_data_base.copy()
189-
pset_data["custom_first_last_tread_run"] = (0.3, 0.0)
189+
pset_data["custom_first_last_tread_run"] = (None, 0.0)
190190
calculated_data["Length"] = 0.9 # Only 3 treads at 0.3 each
191191
self.compare_data(pset_data, calculated_data)
192192

0 commit comments

Comments
 (0)