diff --git a/test/interface/test_filters.py b/test/interface/test_filters.py index 11d48da..f5e0b2d 100644 --- a/test/interface/test_filters.py +++ b/test/interface/test_filters.py @@ -1356,7 +1356,7 @@ def test_json_contains_is_invalid_except_special_version( with pytest.raises(BadFilterFormat) as err: apply_filters(query, filters) - assert str(err) == 'Operator `json_contains` not valid.' + assert err.value.args[0] == 'Operator `json_contains` not valid.' @pytest.mark.usefixtures('multiple_tils_inserted') def test_til_not_contains_value(