Revert "feat: add replay server and web client"

This reverts commit 3c027eae0b.
This commit is contained in:
2026-05-21 09:22:04 +08:00
parent 1ee963ce2e
commit 5899ea0b89
8 changed files with 0 additions and 1967 deletions
-28
View File
@@ -1,28 +0,0 @@
from __future__ import annotations
import unittest
from texas_holdem_replay.server import build_game_url
class ReplayServerTests(unittest.TestCase):
def test_build_game_url_from_base_and_game_id(self) -> None:
self.assertEqual(
build_game_url({"base_url": ["http://127.0.0.1:8000/"], "game_id": ["game 1"]}),
"http://127.0.0.1:8000/games/game%201",
)
def test_build_game_url_accepts_full_url(self) -> None:
self.assertEqual(
build_game_url({"url": ["https://example.test/games/demo"]}),
"https://example.test/games/demo",
)
def test_build_game_url_rejects_non_http_url(self) -> None:
with self.assertRaises(ValueError):
build_game_url({"url": ["file:///tmp/game.json"]})
if __name__ == "__main__":
unittest.main()