This commit is contained in:
Kenneth Kehl
2025-09-15 15:06:55 -07:00
parent 09625047b0
commit b1507b904d

View File

@@ -242,9 +242,9 @@ def test_fuzz_create_org_with_edge_cases(
admin_request, admin_request,
): ):
@settings(max_examples=10) @settings(max_examples=5)
@given( @given(
name=st.text(min_size=1, max_size=50), name=str(uuid.uuid4()),
active=st.booleans(), active=st.booleans(),
organization_type=st.sampled_from( organization_type=st.sampled_from(
[OrganizationType.FEDERAL, OrganizationType.STATE, OrganizationType.OTHER] [OrganizationType.FEDERAL, OrganizationType.STATE, OrganizationType.OTHER]
@@ -259,12 +259,6 @@ def test_fuzz_create_org_with_edge_cases(
existing = _get_organizations() existing = _get_organizations()
initial_count = len(existing) initial_count = len(existing)
# We are doing this so replays don't generate inconsistent results,
# resulting in a FlakyFailure
if name:
name += str(uuid.uuid4())
else:
name = str(uuid.uuid4())
data = { data = {
"name": name, "name": name,
"active": active, "active": active,