(dotenv_file)
| 54 | |
| 55 | |
| 56 | def test_set_key_encoding(dotenv_file): |
| 57 | encoding = "latin-1" |
| 58 | |
| 59 | result = dotenv.set_key(dotenv_file, "a", "é", encoding=encoding) |
| 60 | |
| 61 | assert result == (True, "a", "é") |
| 62 | assert open(dotenv_file, "r", encoding=encoding).read() == "a='é'\n" |
| 63 | |
| 64 | |
| 65 | def test_set_key_permission_error(dotenv_file): |