(organisation, django_user_model, api_client)
| 543 | |
| 544 | @pytest.fixture() |
| 545 | def 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…