| 271 | |
| 272 | @pytest.fixture() |
| 273 | def mv_feature_option( |
| 274 | project: int, |
| 275 | admin_client: "APIClient", |
| 276 | mv_feature: int, |
| 277 | mv_feature_option_value: str, |
| 278 | ) -> int: |
| 279 | data = { |
| 280 | "string_value": mv_feature_option_value, |
| 281 | "type": "unicode", |
| 282 | "default_percentage_allocation": 0, |
| 283 | "feature": mv_feature, |
| 284 | } |
| 285 | url = reverse("api-v1:projects:feature-mv-options-list", args=[project, mv_feature]) |
| 286 | response = admin_client.post( |
| 287 | url, data=json.dumps(data), content_type="application/json" |
| 288 | ) |
| 289 | return response.json()["id"] # type: ignore[no-any-return] |
| 290 | |
| 291 | |
| 292 | @pytest.fixture() |