Files
danyang-match/tests/miniapp/matchmaker_login_contract_test.py
T
WorkBuddy 3c2b967274
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
release: freeze 2026-10-15 validated release baseline
2026-10-15 09:47:31 +08:00

17 lines
460 B
Python

from pathlib import Path
import unittest
ROOT = Path(__file__).parents[2]
class MatchmakerLoginContractTest(unittest.TestCase):
def test_login_uses_public_operator_auth_endpoint(self):
source = (ROOT / "miniapp/pages/matchmaker-login/matchmaker-login.js").read_text(encoding="utf-8")
self.assertIn("/auth/operator/login", source)
self.assertNotIn("/operator/auth/login", source)
if __name__ == "__main__":
unittest.main()