fix(webui): refresh pairing prompts on gateway changes (#6401)
This commit is contained in:
1 parent
9e9e22d331
commit
8af6313c56
26 files changed
+630
-82
No files matched your search
@@ -264,7 +264,7 @@ class TestPairingCommandDispatch:
|
||||
) -> None:
|
||||
monkeypatch.setattr(
|
||||
"nanobot.pairing.store.approve_code",
|
||||
lambda code: ("telegram", "123") if code == "ABCD-EFGH" else None,
|
||||
lambda code, *, on_change=None: ("telegram", "123") if code == "ABCD-EFGH" else None,
|
||||
)
|
||||
fake_msg.content = "/pairing approve ABCD-EFGH"
|
||||
ctx = CommandContext(
|
||||
@@ -286,7 +286,7 @@ class TestPairingCommandDispatch:
|
||||
) -> None:
|
||||
monkeypatch.setattr(
|
||||
"nanobot.pairing.store.revoke",
|
||||
lambda ch, sid: sid == "123",
|
||||
lambda ch, sid, *, on_change=None: sid == "123",
|
||||
)
|
||||
fake_msg.content = "/pairing revoke 123"
|
||||
ctx = CommandContext(
|
||||
|
||||
Reference in new issue
Block a user