(dotenv_file)
| 95 | |
| 96 | |
| 97 | def test_get_key_not_found(dotenv_file): |
| 98 | logger = logging.getLogger("dotenv.main") |
| 99 | |
| 100 | with mock.patch.object(logger, "warning") as mock_warning: |
| 101 | result = dotenv.get_key(dotenv_file, "foo") |
| 102 | |
| 103 | assert result is None |
| 104 | mock_warning.assert_called_once_with("Key %s not found in %s.", "foo", dotenv_file) |
| 105 | |
| 106 | |
| 107 | def test_get_key_ok(dotenv_file): |
nothing calls this directly
no outgoing calls
no test coverage detected