(tmp_path)
| 241 | |
| 242 | |
| 243 | def test_find_dotenv_found(tmp_path): |
| 244 | (root, leaf) = prepare_file_hierarchy(tmp_path) |
| 245 | os.chdir(str(leaf)) |
| 246 | dotenv_file = root / ".env" |
| 247 | dotenv_file.write_bytes(b"TEST=test\n") |
| 248 | |
| 249 | result = dotenv.find_dotenv(usecwd=True) |
| 250 | |
| 251 | assert result == str(dotenv_file) |
| 252 | |
| 253 | |
| 254 | @mock.patch.dict(os.environ, {}, clear=True) |
nothing calls this directly
no test coverage detected