#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):
|
||||
|
||||
@@ -108,8 +108,9 @@ def test_create_duplicate_folder(file_system):
|
||||
file_system.create_folder(folder_name="test_folder")
|
||||
|
||||
assert len(file_system.folders) is 2
|
||||
with pytest.raises(Exception):
|
||||
file_system.create_folder(folder_name="test_folder")
|
||||
# We no longer through exceptions on making duplicate folders.
|
||||
# with pytest.raises(Exception):
|
||||
# file_system.create_folder(folder_name="test_folder")
|
||||
|
||||
assert len(file_system.folders) is 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user