Function
feature
(admin_client, project, default_feature_value, feature_name)
Source from the content-addressed store, hash-verified
| 239 | |
| 240 | @pytest.fixture() |
| 241 | def feature(admin_client, project, default_feature_value, feature_name): # type: ignore[no-untyped-def] |
| 242 | data = { |
| 243 | "name": feature_name, |
| 244 | "initial_value": default_feature_value, |
| 245 | "project": project, |
| 246 | } |
| 247 | url = reverse("api-v1:projects:project-features-list", args=[project]) |
| 248 | |
| 249 | response = admin_client.post(url, data=data) |
| 250 | return response.json()["id"] |
| 251 | |
| 252 | |
| 253 | @pytest.fixture() |
Callers
nothing calls this directly
Tested by
no test coverage detected