Skip to content

Commit

Permalink
add warning for potential slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Apr 3, 2024
1 parent db125b4 commit d8d378c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/relation/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ def test_build_adaptive_invalid_warn(self):
with pytest.warns(
UserWarning, match="Large step length may harm accuracy"
):
builder.build_adaptive(descriptors, step_length=10)
builder.build_adaptive(descriptors, step_length=20)

with pytest.warns(
UserWarning, match="Small step length may slow down searching"
):
# NOTE: warning: this may slow down unit test
builder.build_adaptive(descriptors, step_length=0.09)

# Test invalid number of descriptors
Expand Down

0 comments on commit d8d378c

Please sign in to comment.