fix(qq): keep inbound URL validation off the event loop

Add mixed-DNS, invalid-scheme, cancellation and partial-write coverage. Isolate media roots for activated QQ tests.
This commit is contained in:
Xubin Ren committed 2026-09-15 13:49:49 +08:00
1 parent 9d106bd44d
commit 0afebd4747
3 files changed
+82 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
"""Keep QQ channel tests out of the user's configured media directory."""
import pytest
@pytest.fixture(autouse=True)
def _isolated_media_root(tmp_path, monkeypatch):
monkeypatch.setattr("nanobot.channels.qq.runtime.get_media_dir", lambda *_: tmp_path)