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