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

Function identity

api/tests/integration/conftest.py:169–175  ·  view source on GitHub ↗
(admin_client, identity_identifier, environment, environment_api_key)

Source from the content-addressed store, hash-verified

167
168@pytest.fixture()
169def identity(admin_client, identity_identifier, environment, environment_api_key): # type: ignore[no-untyped-def]
170 identity_data = {"identifier": identity_identifier}
171 url = reverse(
172 "api-v1:environments:environment-identities-list", args=[environment_api_key]
173 )
174 response = admin_client.post(url, data=identity_data)
175 return response.json()["id"]
176
177
178@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected