Skip to content

Commit

Permalink
Test area constraint edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrost-mo committed Aug 23, 2024
1 parent 1434b44 commit 104765a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/operators/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ def test_generate_area_constraint():
assert expected_area_constraint in repr(area_constraint)


def test_generate_area_constraint_no_limits():
"""Generate area constraint with no limits."""
area_constraint = constraints.generate_area_constraint(None, None, None, None)
expected_area_constraint = "Constraint()"
assert expected_area_constraint in repr(area_constraint)


def test_combine_constraints():
"""Combine constraint."""
stash_constraint = constraints.generate_stash_constraint("m01s03i236")
Expand Down

0 comments on commit 104765a

Please sign in to comment.