(monkeypatch)
| 558 | |
| 559 | @need_dotenv |
| 560 | def test_dotenv_path(monkeypatch): |
| 561 | for item in ("FOO", "BAR", "EGGS"): |
| 562 | monkeypatch._setitem.append((os.environ, item, notset)) |
| 563 | |
| 564 | load_dotenv(test_path / ".flaskenv") |
| 565 | assert Path.cwd() == cwd |
| 566 | assert "FOO" in os.environ |
| 567 | |
| 568 | |
| 569 | def test_dotenv_optional(monkeypatch): |
nothing calls this directly
no test coverage detected