( # type: ignore[no-untyped-def]
admin_client: APIClient, organisation: Organisation, settings: SettingsWrapper
)
| 87 | |
| 88 | @pytest.fixture() |
| 89 | def dynamo_enabled_project( # type: ignore[no-untyped-def] |
| 90 | admin_client: APIClient, organisation: Organisation, settings: SettingsWrapper |
| 91 | ): |
| 92 | settings.EDGE_ENABLED = True |
| 93 | project_data = { |
| 94 | "name": "Dynamo Enabled Project", |
| 95 | "organisation": organisation, |
| 96 | } |
| 97 | url = reverse("api-v1:projects:project-list") |
| 98 | response = admin_client.post(url, data=project_data) |
| 99 | return response.json()["id"] |
| 100 | |
| 101 | |
| 102 | @pytest.fixture() |