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

Function organisation

api/tests/conftest.py:323–329  ·  view source on GitHub ↗
(
    db: None, admin_user: FFAdminUser, staff_user: FFAdminUser
)

Source from the content-addressed store, hash-verified

321
322@pytest.fixture()
323def organisation(
324 db: None, admin_user: FFAdminUser, staff_user: FFAdminUser
325) -> Organisation:
326 org: Organisation = Organisation.objects.create(name="Test Org")
327 admin_user.add_organisation(org, role=OrganisationRole.ADMIN)
328 staff_user.add_organisation(org, role=OrganisationRole.USER)
329 return org
330
331
332@pytest.fixture()

Callers

nothing calls this directly

Calls 2

add_organisationMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected