remove legacy system routes

This commit is contained in:
SowinskiBraeden committed 2026-06-29 12:54:10 -07:00
1 parent 737d6d7561
commit 317ef2dfaa
11 files changed
+15 -1547

No files matched your search

+7 -1
View File
@@ -3,6 +3,7 @@ import unittest
from unittest.mock import patch
from app import create_app
from boker.config import DEFAULT_DATABASE_URL
class ProductionConfigTests(unittest.TestCase):
@@ -13,7 +14,12 @@ class ProductionConfigTests(unittest.TestCase):
clear=False,
):
with self.assertRaisesRegex(RuntimeError, "DATABASE_URL"):
create_app({"SECRET_KEY": "test-production-secret"})
create_app(
{
"SECRET_KEY": "test-production-secret",
"SQLALCHEMY_DATABASE_URI": DEFAULT_DATABASE_URL,
}
)
def test_production_accepts_postgresql_database_url(self):
with patch.dict(
+6
View File
@@ -121,6 +121,12 @@ class Phase2AuthLeagueRouteTests(unittest.TestCase):
response = self.client.get("/admin/login")
self.assertEqual(response.status_code, 404)
def test_legacy_csv_public_routes_are_not_registered(self):
for path in ("/leaderboard", "/sessions", "/sessions/legacy-session", "/players/Legacy"):
with self.subTest(path=path):
response = self.client.get(path)
self.assertEqual(response.status_code, 404)
def test_duplicate_league_slug_is_allowed_because_route_uses_public_key(self):
owner = self.create_verified_user()
self.login_as(owner)