You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however this test could be shortened to by using pytest.raises
deftest_graveyard_error_when_no_offset_or_size(self):
"""Attempts to make a shape with a graveyard_size that is an int which should raise a ValueError"""withpytest.raises(ValueError):
test_shape=paramak.RotateStraightShape(
points=[(0, 0), (0, 20), (20, 20)],
graveyard_size=None,
graveyard_offset=None,
)
test_shape.make_graveyard()
The text was updated successfully, but these errors were encountered:
We have lots of tests that have a nested function def and then assert the function call raises an error, for example
paramak/tests/tests_units/test_shape.py
Lines 64 to 76 in 8862e29
however this test could be shortened to by using pytest.raises
The text was updated successfully, but these errors were encountered: