(tmp_path)
| 153 | |
| 154 | |
| 155 | def test_get_default_path(tmp_path): |
| 156 | with sh.pushd(str(tmp_path)): |
| 157 | with open(str(tmp_path / ".env"), "w") as f: |
| 158 | f.write("a=b") |
| 159 | |
| 160 | result = sh.dotenv("get", "a") |
| 161 | |
| 162 | assert result == "b\n" |
| 163 | |
| 164 | |
| 165 | def test_run(tmp_path): |