Function
identity
(admin_client, identity_identifier, environment, environment_api_key)
Source from the content-addressed store, hash-verified
| 167 | |
| 168 | @pytest.fixture() |
| 169 | def 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
Tested by
no test coverage detected