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

Function organisation

api/tests/integration/conftest.py:68–72  ·  view source on GitHub ↗
(admin_client)

Source from the content-addressed store, hash-verified

66
67@pytest.fixture()
68def organisation(admin_client): # type: ignore[no-untyped-def]
69 organisation_data = {"name": "Test org"}
70 url = reverse("api-v1:organisations:organisation-list")
71 response = admin_client.post(url, data=organisation_data)
72 return response.json()["id"]
73
74
75@pytest.fixture()

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.50
postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected