MCPcopy
hub / github.com/Flagsmith/flagsmith / mv_feature_option

Function mv_feature_option

api/tests/integration/conftest.py:273–289  ·  view source on GitHub ↗
(
    project: int,
    admin_client: "APIClient",
    mv_feature: int,
    mv_feature_option_value: str,
)

Source from the content-addressed store, hash-verified

271
272@pytest.fixture()
273def 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()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected