(empty_cwd: Path)
| 101 | |
| 102 | |
| 103 | def test_load_dotenv(empty_cwd: Path) -> None: |
| 104 | value = "dotenv" |
| 105 | with open(empty_cwd / ".env", "w", encoding="utf8") as env: |
| 106 | env.write(f"TEST_ENV_VAR={value}\n") |
| 107 | |
| 108 | load_dotenv() |
| 109 | |
| 110 | assert os.environ.pop("TEST_ENV_VAR", None) == value |
| 111 | |
| 112 | |
| 113 | def test_load_dotquartenv(empty_cwd: Path) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…