(monkeypatch: pytest.MonkeyPatch)
| 35 | |
| 36 | |
| 37 | def test_get_driver(monkeypatch: pytest.MonkeyPatch): |
| 38 | with monkeypatch.context() as m: |
| 39 | m.setattr(nonebot, "_driver", None) |
| 40 | with pytest.raises(ValueError, match="initialized"): |
| 41 | get_driver() |
| 42 | |
| 43 | |
| 44 | def test_get_asgi(): |
nothing calls this directly
no test coverage detected