I’m just discovering Sentry and didnt see in the documentation how to avoid getting errors reports from expected errors triggered in tests.
My app is running tests in gitlab CI and for some of them I have something like:
def test_toto():
with pytest.raises(ValueError):
function_called_with_failing_params(fail)
def function_called_with_failing_params(param):
try:
......
except Exception as e:
logger.error(param)
Currently I have Sentry reporting me those errors each time I’m running tests, how can I avoid that ?