MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / test_get_key_none

Function test_get_key_none

tests/test_main.py:129–138  ·  view source on GitHub ↗
(dotenv_file)

Source from the content-addressed store, hash-verified

127
128
129def 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
141def test_unset_with_value(dotenv_file):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected