chore: refresh public mirror
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user