MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / feature_2

Function feature_2

api/tests/integration/conftest.py:293–302  ·  view source on GitHub ↗
(admin_client, project, default_feature_value, feature_2_name)

Source from the content-addressed store, hash-verified

291
292@pytest.fixture()
293def feature_2(admin_client, project, default_feature_value, feature_2_name): # type: ignore[no-untyped-def]
294 data = {
295 "name": feature_2_name,
296 "initial_value": default_feature_value,
297 "project": project,
298 }
299 url = reverse("api-v1:projects:project-features-list", args=[project])
300
301 response = admin_client.post(url, data=data)
302 return response.json()["id"]
303
304
305@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected