chore: refresh public mirror

This commit is contained in:
chen qiang
2026-08-14 15:55:06 +08:00
parent 37e018e0e0
commit cf465a700b
6 changed files with 28 additions and 7 deletions
+10
View File
@@ -33,6 +33,16 @@ class AWRSkillTests(unittest.TestCase):
def test_default_transit_url_uses_https_domain(self):
self.assertEqual(skill.TRANSIT_URL, "https://ts.henlo.net")
def test_agent_update_requires_explicit_admin_token(self):
config = self.config()
with mock.patch.object(skill, "get_config", return_value=config), mock.patch.object(
skill, "ensure_logged_in", return_value=True
), mock.patch.object(skill.requests, "post") as post:
result = skill.agent_update("WEIRUI")
self.assertFalse(result["success"])
self.assertIn("upgrade admin token is not configured", result["error"])
post.assert_not_called()
def config(self):
return {
"access_token": "test-token",