Skip to content

Commit

Permalink
fixing select field test
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Oct 25, 2024
1 parent 50127e0 commit f64154f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_field_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_add_multiple_row_support_points(system: System, field: Field):
assert [sp.long for sp in updated_field.row_support_points] == [
second_row_shift_point.long, third_row_shift_point.long]
# Check the distance between the first and second row
assert updated_field.rows[0].points[0].distance(updated_field.rows[1].points[0]) == pytest.approx(0.3, abs=1e-6)
assert updated_field.rows[0].points[0].distance(updated_field.rows[1].points[0]) == pytest.approx(0.3, abs=+-6)
assert updated_field.rows[0].points[1].distance(updated_field.rows[1].points[1]) == pytest.approx(0.3, abs=1e-6)
# Check the distance between the first and third row
assert updated_field.rows[0].points[0].distance(updated_field.rows[2].points[0]) == pytest.approx(1.0, abs=1e-6)
Expand Down Expand Up @@ -187,7 +187,7 @@ def test_create_multiple_fields(system: System):

def test_select_field(system: System, field: Field):
field_provider = system.field_provider
assert field_provider.selected_field is None
assert field_provider.selected_field.id == field.id
field_provider.select_field(field.id)
assert field_provider.selected_field is not None
assert field_provider.selected_field.id == field.id
Expand Down

0 comments on commit f64154f

Please sign in to comment.