mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 18:08:26 -04:00
ugh
This commit is contained in:
@@ -236,6 +236,9 @@ def test_post_create_organization_works(admin_request, sample_organization):
|
|||||||
assert len(organization) == 2
|
assert len(organization) == 2
|
||||||
|
|
||||||
|
|
||||||
|
seen = set()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures(
|
@pytest.mark.usefixtures(
|
||||||
"admin_request",
|
"admin_request",
|
||||||
)
|
)
|
||||||
@@ -243,7 +246,7 @@ def test_fuzz_create_org_with_edge_cases(
|
|||||||
admin_request,
|
admin_request,
|
||||||
):
|
):
|
||||||
|
|
||||||
@settings(database=None, phases=[Phase.generate])
|
@settings(max_examples=100, database=None, phases=[Phase.generate])
|
||||||
@given(
|
@given(
|
||||||
name=st.uuids().map(str),
|
name=st.uuids().map(str),
|
||||||
active=st.booleans(),
|
active=st.booleans(),
|
||||||
@@ -252,6 +255,12 @@ def test_fuzz_create_org_with_edge_cases(
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
def inner(name, active, organization_type):
|
def inner(name, active, organization_type):
|
||||||
|
# We don't want hypothesis running replays
|
||||||
|
key = (name, active, organization_type)
|
||||||
|
if key in seen:
|
||||||
|
return
|
||||||
|
seen.add(key)
|
||||||
|
|
||||||
print(hilite(f"name {name} active {active} org {organization_type}"))
|
print(hilite(f"name {name} active {active} org {organization_type}"))
|
||||||
current_app.logger.info(
|
current_app.logger.info(
|
||||||
hilite(f"name {name} active {active} org {organization_type}")
|
hilite(f"name {name} active {active} org {organization_type}")
|
||||||
|
|||||||
Reference in New Issue
Block a user