T-003: 建立最小验证基线

This commit is contained in:
ila
2026-07-06 17:49:05 +08:00
parent f40153355f
commit bb7b745666
5 changed files with 26 additions and 8 deletions
+8
View File
@@ -1,9 +1,17 @@
from django.test import TestCase
from home.models import HomePage
from wagtail.models import Page, Site
from wagtail.test.utils import WagtailPageTestCase
class Smoketest(TestCase):
def test_homepage_returns_200(self):
response = self.client.get("/")
self.assertEqual(response.status_code, 200)
class HomeSetUpTests(WagtailPageTestCase):
"""
Tests for basic page structure setup and HomePage creation.