(dotenv_file)
| 211 | |
| 212 | |
| 213 | def test_run_with_other_env(dotenv_file): |
| 214 | with open(dotenv_file, "w") as f: |
| 215 | f.write("a=b") |
| 216 | |
| 217 | result = sh.dotenv("--file", dotenv_file, "run", "printenv", "a") |
| 218 | |
| 219 | assert result == "b\n" |
| 220 | |
| 221 | |
| 222 | def test_run_without_cmd(cli): |