mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 08:12:27 -05:00
debug
This commit is contained in:
@@ -286,18 +286,17 @@ def test_fuzz_create_org_with_edge_cases(
|
|||||||
_data=data,
|
_data=data,
|
||||||
_expected_status=expected_status,
|
_expected_status=expected_status,
|
||||||
)
|
)
|
||||||
if (
|
if is_valid:
|
||||||
name
|
|
||||||
and organization_type is not None
|
|
||||||
and isinstance(organization_type, OrganizationType)
|
|
||||||
):
|
|
||||||
assert response.status_code == 201
|
assert response.status_code == 201
|
||||||
assert len(_get_organizations()) == initial_count + 1
|
assert len(_get_organizations()) == initial_count + 1
|
||||||
else:
|
else:
|
||||||
assert response.status_code in (400, 422)
|
assert response.status_code in (400, 422)
|
||||||
assert len(_get_organizations()) == initial_count
|
assert len(_get_organizations()) == initial_count
|
||||||
|
except AssertionError:
|
||||||
|
if is_valid:
|
||||||
|
pytest.fail(f"Expected success but got error. Data: {data}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Unexpected error durring fuzz test: {e}")
|
pytest.fail(f"Unexpected error durring fuzz test: {e} {data}")
|
||||||
|
|
||||||
inner()
|
inner()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user