MCPcopy
hub / github.com/pallets/flask / test_disable_dotenv_from_env

Function test_disable_dotenv_from_env

tests/test_cli.py:577–581  ·  view source on GitHub ↗
(monkeypatch, runner)

Source from the content-addressed store, hash-verified

575
576@need_dotenv
577def test_disable_dotenv_from_env(monkeypatch, runner):
578 monkeypatch.chdir(test_path)
579 monkeypatch.setitem(os.environ, "FLASK_SKIP_DOTENV", "1")
580 runner.invoke(FlaskGroup())
581 assert "FOO" not in os.environ
582
583
584def test_run_cert_path():

Callers

nothing calls this directly

Calls 2

FlaskGroupClass · 0.90
invokeMethod · 0.45

Tested by

no test coverage detected