mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-10-25 17:36:29 +08:00
test: restore agent registry after manual speech cases
This commit is contained in:
1 file changed
+3
-1
@@ -30,7 +30,7 @@ class QuietRequestHandler(WSGIRequestHandler):
|
||||
["older", "latest", "missing", "new_arrival", "zero", "gone", "edited", "reused"],
|
||||
)
|
||||
def test_manual_tts_targets_requested_persisted_message(
|
||||
tmp_path, monkeypatch, owner, target
|
||||
tmp_path, monkeypatch, request, owner, target
|
||||
):
|
||||
root = tmp_path / "default"
|
||||
helper = tmp_path / "helper"
|
||||
@@ -47,6 +47,8 @@ def test_manual_tts_targets_requested_persisted_message(
|
||||
],
|
||||
"default",
|
||||
)
|
||||
# Return to config-following mode before later suites choose a workspace.
|
||||
request.addfinalizer(lambda: set_agent_registry(None))
|
||||
set_agent_registry(registry)
|
||||
stores = {
|
||||
key: get_conversation_store(str(path))
|
||||
|
||||
Reference in new issue
Block a user