MCPcopy Create free account
hub / github.com/microsoft/Webwright / test_check_openai_key_missing

Function test_check_openai_key_missing

tests/unit/test_doctor.py:50–56  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

48
49
50def test_check_openai_key_missing(monkeypatch):
51 monkeypatch.delenv("OPENAI_API_KEY", raising=False)
52
53 ok, message = check_openai_key()
54
55 assert ok is False
56 assert "missing" in message
57
58
59def test_plugin_manifests_exist(tmp_path, monkeypatch):

Callers

nothing calls this directly

Calls 1

check_openai_keyFunction · 0.90

Tested by

no test coverage detected