Skip to content

Commit 25150b6

Browse files
committed
@sanderegg review: doc
1 parent f3e3fb3 commit 25150b6

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

packages/pytest-simcore/src/pytest_simcore/environment_configs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def pytest_addoption(parser: pytest.Parser):
2323
action="store",
2424
type=Path,
2525
default=None,
26-
help="Path to an env file. Consider passing a link to repo configs, i.e. `ln -s /path/to/osparc-ops-config/repo.config`",
26+
help="Path to an env file. Replaces .env-devel in the tests by an external envfile."
27+
"e.g. consider "
28+
" `ln -s /path/to/osparc-ops-config/repo.config .secrets` and then "
29+
" `pytest --external-envfile=.secrets --pdb tests/unit/test_core_settings.py`",
2730
)
2831

2932

services/catalog/tests/unit/test_core_settings.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
# pylint: disable=unused-argument
33
# pylint: disable=unused-variable
44
# pylint: disable=too-many-arguments
5-
"""
6-
We can validate actual .env files (also refered as `repo.config` files) by passing them via the CLI
7-
8-
$ ln -s /path/to/osparc-config/deployments/mydeploy.com/repo.config .secrets
9-
$ pytest --external-envfile=.secrets --pdb tests/unit/test_core_settings.py
10-
11-
"""
125

136
from pytest_simcore.helpers.typing_env import EnvVarsDict
147
from simcore_service_catalog.core.settings import ApplicationSettings

services/datcore-adapter/tests/unit/test_core_settings.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
# pylint: disable=unused-variable
22
# pylint: disable=unused-argument
33
# pylint: disable=redefined-outer-name
4-
"""
5-
We validate actual envfiles (e.g. repo.config files) by passing them via the CLI
6-
7-
$ ln -s /path/to/osparc-config/deployments/mydeploy.com/repo.config .secrets
8-
$ pytest --external-envfile=.secrets --pdb tests/unit/test_core_settings.py
9-
10-
"""
11-
124

135
import pytest
146
from pytest_simcore.helpers.monkeypatch_envs import (

services/payments/tests/unit/test_core_settings.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
# pylint: disable=unused-argument
33
# pylint: disable=unused-variable
44
# pylint: disable=too-many-arguments
5-
"""
6-
We validate actual envfiles (e.g. repo.config files) by passing them via the CLI
7-
8-
$ ln -s /path/to/osparc-config/deployments/mydeploy.com/repo.config .secrets
9-
$ pytest --external-envfile=.secrets --pdb tests/unit/test_core_settings.py
10-
11-
"""
12-
135

146
from pytest_simcore.helpers.typing_env import EnvVarsDict
157
from simcore_service_payments.core.settings import ApplicationSettings

0 commit comments

Comments
 (0)