(cli, dotenv_file)
| 86 | |
| 87 | |
| 88 | def test_unset_existing_value(cli, dotenv_file): |
| 89 | with open(dotenv_file, "w") as f: |
| 90 | f.write("a=b") |
| 91 | |
| 92 | result = cli.invoke(dotenv_cli, ['--file', dotenv_file, 'unset', 'a']) |
| 93 | |
| 94 | assert (result.exit_code, result.output) == (0, "Successfully removed a\n") |
| 95 | assert open(dotenv_file, "r").read() == "" |
| 96 | |
| 97 | |
| 98 | def test_unset_non_existent_value(cli, dotenv_file): |