mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
debug
This commit is contained in:
@@ -245,7 +245,7 @@ def test_fuzz_create_org_with_edge_cases(
|
|||||||
@settings(max_examples=10)
|
@settings(max_examples=10)
|
||||||
@given(
|
@given(
|
||||||
name=st.one_of(st.none(), st.just(""), st.text(min_size=1, max_size=50)),
|
name=st.one_of(st.none(), st.just(""), st.text(min_size=1, max_size=50)),
|
||||||
active=st.one_of(st.none(), st.booleans()),
|
active=st.booleans(),
|
||||||
organization_type=st.one_of(
|
organization_type=st.one_of(
|
||||||
st.none(),
|
st.none(),
|
||||||
st.sampled_from(list(OrganizationType)),
|
st.sampled_from(list(OrganizationType)),
|
||||||
@@ -277,7 +277,6 @@ def test_fuzz_create_org_with_edge_cases(
|
|||||||
isinstance(name, str)
|
isinstance(name, str)
|
||||||
and name.strip() != ""
|
and name.strip() != ""
|
||||||
and isinstance(organization_type, OrganizationType)
|
and isinstance(organization_type, OrganizationType)
|
||||||
and isinstance(active, bool)
|
|
||||||
}
|
}
|
||||||
expected_status = 201 if is_valid else 400
|
expected_status = 201 if is_valid else 400
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user