feat: expand module workflows, dynamic config, notifications and console API
This commit is contained in:
@@ -52,6 +52,24 @@ def test_runtime_env_files_load_values_without_overriding_process_env(
|
||||
assert os.environ["GYXX_RUNTIME_ENV_TEST_KEEP"] == "process"
|
||||
|
||||
|
||||
def test_runtime_env_file_fills_an_empty_process_placeholder(
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
env_file = tmp_path / "production.env"
|
||||
env_file.write_text(
|
||||
"GYXX_RUNTIME_ENV_TEST_EMPTY=from-file\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
monkeypatch.setenv("GYXX_RUNTIME_ENV_TEST_EMPTY", "")
|
||||
|
||||
_load_runtime_environment_files(argparse.Namespace(env_file=[env_file]))
|
||||
|
||||
import os
|
||||
|
||||
assert os.environ["GYXX_RUNTIME_ENV_TEST_EMPTY"] == "from-file"
|
||||
|
||||
|
||||
def test_runtime_env_file_must_exist(tmp_path: Path) -> None:
|
||||
missing = tmp_path / "missing.env"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user