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

Function project

api/tests/integration/conftest.py:76–80  ·  view source on GitHub ↗
(admin_client, organisation)

Source from the content-addressed store, hash-verified

74
75@pytest.fixture()
76def project(admin_client, organisation): # type: ignore[no-untyped-def]
77 project_data = {"name": "Test Project", "organisation": organisation}
78 url = reverse("api-v1:projects:project-list")
79 response = admin_client.post(url, data=project_data)
80 return response.json()["id"]
81
82
83@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected