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

Function test_find_dotenv_no_file_raise

tests/test_main.py:226–231  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

224
225
226def test_find_dotenv_no_file_raise(tmp_path):
227 (root, leaf) = prepare_file_hierarchy(tmp_path)
228 os.chdir(str(leaf))
229
230 with pytest.raises(IOError):
231 dotenv.find_dotenv(raise_error_if_not_found=True, usecwd=True)
232
233
234def test_find_dotenv_no_file_no_raise(tmp_path):

Callers

nothing calls this directly

Calls 1

prepare_file_hierarchyFunction · 0.85

Tested by

no test coverage detected