mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 20:11:09 -05:00
feat: Add detailed park and ride pages with HTMX integration
- Implemented park detail page with dynamic content loading for rides and weather. - Created park list page with filters and search functionality. - Developed ride detail page showcasing ride stats, reviews, and similar rides. - Added ride list page with filtering options and dynamic loading. - Introduced search results page with tabs for parks, rides, and users. - Added HTMX tests for global search functionality.
This commit is contained in:
10
tests/test_htmx_views.py
Normal file
10
tests/test_htmx_views.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.test import Client, TestCase
|
||||
|
||||
|
||||
class HTMXViewsTest(TestCase):
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
|
||||
def test_global_search_returns_partial_for_htmx(self):
|
||||
response = self.client.get('/search/', HTTP_HX_REQUEST='true')
|
||||
self.assertIn(response.status_code, (200, 302))
|
||||
Reference in New Issue
Block a user