(cli, dotenv_file, quote_mode, variable, value, expected)
| 113 | ) |
| 114 | ) |
| 115 | def test_set_quote_options(cli, dotenv_file, quote_mode, variable, value, expected): |
| 116 | result = cli.invoke( |
| 117 | dotenv_cli, |
| 118 | ["--file", dotenv_file, "--export", "false", "--quote", quote_mode, "set", variable, value] |
| 119 | ) |
| 120 | |
| 121 | assert (result.exit_code, result.output) == (0, "{}={}\n".format(variable, value)) |
| 122 | assert open(dotenv_file, "r").read() == expected |
| 123 | |
| 124 | |
| 125 | @pytest.mark.parametrize( |