MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / non_admin_client

Function non_admin_client

api/tests/integration/conftest.py:545–549  ·  view source on GitHub ↗
(organisation, django_user_model, api_client)

Source from the content-addressed store, hash-verified

543
544@pytest.fixture()
545def non_admin_client(organisation, django_user_model, api_client): # type: ignore[no-untyped-def]
546 user = django_user_model.objects.create(username="non_admin_user")
547 user.add_organisation(Organisation.objects.get(id=organisation))
548 api_client.force_authenticate(user=user)
549 return api_client
550
551
552@pytest.fixture()

Callers

nothing calls this directly

Calls 3

add_organisationMethod · 0.80
createMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…