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:
1 parent
9d106bd44d
commit
0afebd4747
3 files changed
+82
-1
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user