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

Function feature

api/tests/integration/conftest.py:241–250  ·  view source on GitHub ↗
(admin_client, project, default_feature_value, feature_name)

Source from the content-addressed store, hash-verified

239
240@pytest.fixture()
241def 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

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected