MCPcopy
hub / github.com/Flagsmith/flagsmith / dynamo_enabled_project

Function dynamo_enabled_project

api/tests/integration/conftest.py:89–99  ·  view source on GitHub ↗
(  # type: ignore[no-untyped-def]
    admin_client: APIClient, organisation: Organisation, settings: SettingsWrapper
)

Source from the content-addressed store, hash-verified

87
88@pytest.fixture()
89def dynamo_enabled_project( # type: ignore[no-untyped-def]
90 admin_client: APIClient, organisation: Organisation, settings: SettingsWrapper
91):
92 settings.EDGE_ENABLED = True
93 project_data = {
94 "name": "Dynamo Enabled Project",
95 "organisation": organisation,
96 }
97 url = reverse("api-v1:projects:project-list")
98 response = admin_client.post(url, data=project_data)
99 return response.json()["id"]
100
101
102@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected