Function
feature_2
(admin_client, project, default_feature_value, feature_2_name)
Source from the content-addressed store, hash-verified
| 291 | |
| 292 | @pytest.fixture() |
| 293 | def feature_2(admin_client, project, default_feature_value, feature_2_name): # type: ignore[no-untyped-def] |
| 294 | data = { |
| 295 | "name": feature_2_name, |
| 296 | "initial_value": default_feature_value, |
| 297 | "project": project, |
| 298 | } |
| 299 | url = reverse("api-v1:projects:project-features-list", args=[project]) |
| 300 | |
| 301 | response = admin_client.post(url, data=data) |
| 302 | return response.json()["id"] |
| 303 | |
| 304 | |
| 305 | @pytest.fixture() |
Callers
nothing calls this directly
Tested by
no test coverage detected