(tmp_path)
| 200 | |
| 201 | |
| 202 | def test_run_with_none_value(tmp_path): |
| 203 | with sh.pushd(str(tmp_path)): |
| 204 | dotenv_file = str(tmp_path / ".env") |
| 205 | with open(dotenv_file, "w") as f: |
| 206 | f.write("a=b\nc") |
| 207 | |
| 208 | result = sh.dotenv("run", "printenv", "a") |
| 209 | |
| 210 | assert result == "b\n" |
| 211 | |
| 212 | |
| 213 | def test_run_with_other_env(dotenv_file): |