#2682 Backport changes to core PrimAITE
This commit is contained in:
@@ -25,6 +25,10 @@ def test_creating_response_from_boolean():
|
||||
r2 = RequestResponse.from_bool(False)
|
||||
assert r2.status == "failure"
|
||||
|
||||
|
||||
@pytest.mark.skip("Disable validation due to performance hit.")
|
||||
def test_response_from_invalid_options():
|
||||
"""Test that we get a validation error if a non-boolean is passed."""
|
||||
with pytest.raises(ValidationError):
|
||||
r3 = RequestResponse.from_bool(1)
|
||||
with pytest.raises(ValidationError):
|
||||
|
||||
Reference in New Issue
Block a user