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

Function dynamo_enabled_environment

api/tests/integration/conftest.py:147–160  ·  view source on GitHub ↗
(
    admin_client: APIClient,
    dynamo_enabled_project: int,
    environment_api_key: str,
)

Source from the content-addressed store, hash-verified

145
146@pytest.fixture()
147def dynamo_enabled_environment(
148 admin_client: APIClient,
149 dynamo_enabled_project: int,
150 environment_api_key: str,
151) -> int:
152 environment_data = {
153 "name": "Test Environment",
154 "api_key": environment_api_key,
155 "project": dynamo_enabled_project,
156 }
157 url = reverse("api-v1:environments:environment-list")
158
159 response = admin_client.post(url, data=environment_data)
160 return response.json()["id"] # type: ignore[no-any-return]
161
162
163@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected