17 lines
460 B
Python
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()
|