feat: add model groups, verified registration and CNY credit grants

This commit is contained in:
wlx committed 2026-09-18 17:27:58 +08:00
1 parent f5ba6cb255
commit 7a18db2123
40 files changed
+1980 -263

No files matched your search

+6
View File
@@ -37,6 +37,12 @@ def configuration():
class DeploymentTests(unittest.TestCase):
def test_proxy_replaces_forwarding_headers_for_verification_limits(self):
routes = (DIRECTORY / "nginx" / "routes.conf").read_text(encoding="utf-8")
self.assertEqual(routes.count('proxy_set_header Forwarded "";'), 2)
self.assertEqual(routes.count('proxy_set_header X-Forwarded-For $remote_addr;'), 2)
self.assertNotIn('$proxy_add_x_forwarded_for', routes)
def test_login_smoke_requires_super_admin_and_checks_management(self):
cfg = configuration()
cfg["services"]["moyi-api"]["environment"]["ADMIN_ACCOUNT"] = "adimin"