(empty_cwd: Path)
| 111 | |
| 112 | |
| 113 | def test_load_dotquartenv(empty_cwd: Path) -> None: |
| 114 | value = "dotquartenv" |
| 115 | with open(empty_cwd / ".quartenv", "w", encoding="utf8") as env: |
| 116 | env.write(f"TEST_ENV_VAR={value}\n") |
| 117 | |
| 118 | load_dotenv() |
| 119 | |
| 120 | assert os.environ.pop("TEST_ENV_VAR", None) == value |
| 121 | |
| 122 | |
| 123 | def test_load_dotenv_beats_dotquartenv(empty_cwd: Path) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…