Skip to content

Commit e8ac5d4

Browse files
committed
ensure we have postgres services
1 parent 8feee15 commit e8ac5d4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

services/dynamic-sidecar/tests/conftest.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
setenvs_from_dict,
2929
setenvs_from_envfile,
3030
)
31+
from pytest_simcore.helpers.postgres_tools import PostgresTestConfig
3132
from simcore_service_dynamic_sidecar.core.reserved_space import (
3233
remove_reserved_disk_space,
3334
)
@@ -40,6 +41,7 @@
4041
"pytest_simcore.docker_swarm",
4142
"pytest_simcore.faker_users_data",
4243
"pytest_simcore.minio_service",
44+
"pytest_simcore.postgres_service",
4345
"pytest_simcore.pytest_global_environs",
4446
"pytest_simcore.rabbit_service",
4547
"pytest_simcore.redis_service",
@@ -206,8 +208,9 @@ def base_mock_envs(
206208

207209
@pytest.fixture
208210
def mock_environment(
211+
postgres_host_config: PostgresTestConfig,
209212
mock_storage_check: None,
210-
mock_postgres_check: None,
213+
# mock_postgres_check: None,
211214
mock_rabbit_check: None,
212215
monkeypatch: pytest.MonkeyPatch,
213216
base_mock_envs: EnvVarsDict,
@@ -248,10 +251,6 @@ def mock_environment(
248251
"DY_SIDECAR_USER_ID": f"{user_id}",
249252
"DY_SIDECAR_USER_SERVICES_HAVE_INTERNET_ACCESS": "false",
250253
"DYNAMIC_SIDECAR_COMPOSE_NAMESPACE": compose_namespace,
251-
"POSTGRES_DB": "test",
252-
"POSTGRES_HOST": "test",
253-
"POSTGRES_PASSWORD": "test",
254-
"POSTGRES_USER": "test",
255254
"R_CLONE_PROVIDER": "MINIO",
256255
"RABBIT_HOST": "test",
257256
"RABBIT_PASSWORD": "test",

0 commit comments

Comments
 (0)