mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 05:11:09 -05:00
- 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.
11 lines
313 B
Python
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))
|