|
28 | 28 | setenvs_from_dict, |
29 | 29 | setenvs_from_envfile, |
30 | 30 | ) |
| 31 | +from pytest_simcore.helpers.postgres_tools import PostgresTestConfig |
31 | 32 | from simcore_service_dynamic_sidecar.core.reserved_space import ( |
32 | 33 | remove_reserved_disk_space, |
33 | 34 | ) |
|
40 | 41 | "pytest_simcore.docker_swarm", |
41 | 42 | "pytest_simcore.faker_users_data", |
42 | 43 | "pytest_simcore.minio_service", |
| 44 | + "pytest_simcore.postgres_service", |
43 | 45 | "pytest_simcore.pytest_global_environs", |
44 | 46 | "pytest_simcore.rabbit_service", |
45 | 47 | "pytest_simcore.redis_service", |
@@ -206,8 +208,9 @@ def base_mock_envs( |
206 | 208 |
|
207 | 209 | @pytest.fixture |
208 | 210 | def mock_environment( |
| 211 | + postgres_host_config: PostgresTestConfig, |
209 | 212 | mock_storage_check: None, |
210 | | - mock_postgres_check: None, |
| 213 | + # mock_postgres_check: None, |
211 | 214 | mock_rabbit_check: None, |
212 | 215 | monkeypatch: pytest.MonkeyPatch, |
213 | 216 | base_mock_envs: EnvVarsDict, |
@@ -248,10 +251,6 @@ def mock_environment( |
248 | 251 | "DY_SIDECAR_USER_ID": f"{user_id}", |
249 | 252 | "DY_SIDECAR_USER_SERVICES_HAVE_INTERNET_ACCESS": "false", |
250 | 253 | "DYNAMIC_SIDECAR_COMPOSE_NAMESPACE": compose_namespace, |
251 | | - "POSTGRES_DB": "test", |
252 | | - "POSTGRES_HOST": "test", |
253 | | - "POSTGRES_PASSWORD": "test", |
254 | | - "POSTGRES_USER": "test", |
255 | 254 | "R_CLONE_PROVIDER": "MINIO", |
256 | 255 | "RABBIT_HOST": "test", |
257 | 256 | "RABBIT_PASSWORD": "test", |
|
0 commit comments