(app: App, monkeypatch: pytest.MonkeyPatch)
| 89 | |
| 90 | |
| 91 | def test_get_bot(app: App, monkeypatch: pytest.MonkeyPatch): |
| 92 | driver = get_driver() |
| 93 | |
| 94 | with pytest.raises(ValueError, match="no bots"): |
| 95 | get_bot() |
| 96 | |
| 97 | with monkeypatch.context() as m: |
| 98 | m.setattr(driver, "_bots", {"test": "test"}) |
| 99 | assert get_bot() == "test" |
| 100 | assert get_bot("test") == "test" |
| 101 | assert get_bots() == {"test": "test"} |
nothing calls this directly
no test coverage detected