Function
mv_feature
(admin_client, project, default_feature_value, mv_feature_name)
Source from the content-addressed store, hash-verified
| 252 | |
| 253 | @pytest.fixture() |
| 254 | def mv_feature(admin_client, project, default_feature_value, mv_feature_name): # type: ignore[no-untyped-def] |
| 255 | data = { |
| 256 | "name": mv_feature_name, |
| 257 | "initial_value": default_feature_value, |
| 258 | "project": project, |
| 259 | "type": "MULTIVARIATE", |
| 260 | } |
| 261 | url = reverse("api-v1:projects:project-features-list", args=[project]) |
| 262 | |
| 263 | response = admin_client.post(url, data=data) |
| 264 | return response.json()["id"] |
| 265 | |
| 266 | |
| 267 | @pytest.fixture() |
Callers
nothing calls this directly
Tested by
no test coverage detected