mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 00:06:16 -04:00
try fuzzed org invite test
This commit is contained in:
@@ -4,7 +4,7 @@ import uuid
|
|||||||
import pytest
|
import pytest
|
||||||
from flask import current_app, json
|
from flask import current_app, json
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
from hypothesis import given
|
from hypothesis import HealthCheck, given, settings
|
||||||
from hypothesis import strategies as st
|
from hypothesis import strategies as st
|
||||||
from sqlalchemy import select
|
from sqlalchemy import select
|
||||||
|
|
||||||
@@ -177,6 +177,7 @@ def test_update_org_invited_user_set_status_to_cancelled(
|
|||||||
assert json_resp["data"]["status"] == InvitedUserStatus.CANCELLED
|
assert json_resp["data"]["status"] == InvitedUserStatus.CANCELLED
|
||||||
|
|
||||||
|
|
||||||
|
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
|
||||||
@given(random_user_id=st.uuids(), random_org_id=st.uuids())
|
@given(random_user_id=st.uuids(), random_org_id=st.uuids())
|
||||||
def test_fuzz_update_org_invited_user_for_wrong_service_returns_404(
|
def test_fuzz_update_org_invited_user_for_wrong_service_returns_404(
|
||||||
admin_request, random_user_id, random_org_id
|
admin_request, random_user_id, random_org_id
|
||||||
|
|||||||
Reference in New Issue
Block a user