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

Function mv_feature

api/tests/integration/conftest.py:254–264  ·  view source on GitHub ↗
(admin_client, project, default_feature_value, mv_feature_name)

Source from the content-addressed store, hash-verified

252
253@pytest.fixture()
254def 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

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected