(
admin_client: APIClient,
dynamo_enabled_project: int,
environment_api_key: str,
)
| 145 | |
| 146 | @pytest.fixture() |
| 147 | def dynamo_enabled_environment( |
| 148 | admin_client: APIClient, |
| 149 | dynamo_enabled_project: int, |
| 150 | environment_api_key: str, |
| 151 | ) -> int: |
| 152 | environment_data = { |
| 153 | "name": "Test Environment", |
| 154 | "api_key": environment_api_key, |
| 155 | "project": dynamo_enabled_project, |
| 156 | } |
| 157 | url = reverse("api-v1:environments:environment-list") |
| 158 | |
| 159 | response = admin_client.post(url, data=environment_data) |
| 160 | return response.json()["id"] # type: ignore[no-any-return] |
| 161 | |
| 162 | |
| 163 | @pytest.fixture() |