(tmp_path)
| 186 | |
| 187 | |
| 188 | def test_unset_non_existent_file(tmp_path): |
| 189 | nx_file = str(tmp_path / "nx") |
| 190 | logger = logging.getLogger("dotenv.main") |
| 191 | |
| 192 | with mock.patch.object(logger, "warning") as mock_warning: |
| 193 | result = dotenv.unset_key(nx_file, "foo") |
| 194 | |
| 195 | assert result == (None, "foo") |
| 196 | mock_warning.assert_called_once_with( |
| 197 | "Can't delete from %s - it doesn't exist.", |
| 198 | nx_file, |
| 199 | ) |
| 200 | |
| 201 | |
| 202 | def prepare_file_hierarchy(path): |
nothing calls this directly
no outgoing calls
no test coverage detected