feat: 切换正式管理端默认地址 (#148)

This commit is contained in:
chengma
2026-08-11 11:50:29 +08:00
parent e4385ac2dc
commit 5c2f4f65d9
9 changed files with 77 additions and 24 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ from src.admin_gateway import (
ClaimCapabilities,
ClientInfo,
)
from src.http_admin_gateway import HttpAdminGateway
from src.http_admin_gateway import DEFAULT_ADMIN_BASE_URL, HttpAdminGateway
from src.task_models import TaskType
@@ -144,7 +144,7 @@ class HttpAdminGatewayTest(unittest.TestCase):
self.assertTrue(receipt.accepted)
self.assertEqual(
opener.request.full_url,
"http://127.0.0.1:8080/api/v1/client/tasks/COL-001/result",
f"{DEFAULT_ADMIN_BASE_URL}/api/v1/client/tasks/COL-001/result",
)
headers = {
key.lower(): value for key, value in opener.request.header_items()
@@ -256,7 +256,7 @@ class HttpAdminGatewayTest(unittest.TestCase):
self.assertEqual(opener.request.get_method(), "POST")
self.assertEqual(
opener.request.full_url,
"http://127.0.0.1:8080/api/v1/client/tasks/claim",
f"{DEFAULT_ADMIN_BASE_URL}/api/v1/client/tasks/claim",
)
headers = {
key.lower(): value for key, value in opener.request.header_items()