Skip to content

Commit

Permalink
Fix test data generation failing
Browse files Browse the repository at this point in the history
hypothesis sometimes fails a health check with
too much test data removed due to failed assumption.

The failing assumption is changed to an assignment
  • Loading branch information
eivindjahren committed Feb 5, 2024
1 parent 22b5cd4 commit c5c5cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_tests/config/test_transfer_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_that_triangular_is_symmetric_around_mode(args):
_mode, _min, _max = args

# Ensure the triangular distribution is symmetric
assume(_mode == (_min + _max) / 2)
_mode = (_min + _max) / 2

ymode = (_mode - _min) / (_max - _min)
delta = ymode / 2
Expand Down

0 comments on commit c5c5cbe

Please sign in to comment.