Files
thrillwiki_django_no_react/tests/test_htmx_views.py
pacnpal b9063ff4f8 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.
2025-12-19 19:53:20 -05:00

11 lines
313 B
Python

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))