(dotenv_file)
| 127 | |
| 128 | |
| 129 | def test_get_key_none(dotenv_file): |
| 130 | logger = logging.getLogger("dotenv.main") |
| 131 | with open(dotenv_file, "w") as f: |
| 132 | f.write("foo") |
| 133 | |
| 134 | with mock.patch.object(logger, "warning") as mock_warning: |
| 135 | result = dotenv.get_key(dotenv_file, "foo") |
| 136 | |
| 137 | assert result is None |
| 138 | mock_warning.assert_not_called() |
| 139 | |
| 140 | |
| 141 | def test_unset_with_value(dotenv_file): |
nothing calls this directly
no outgoing calls
no test coverage detected