Skip to content

Commit

Permalink
deleted tests for rejected view
Browse files Browse the repository at this point in the history
  • Loading branch information
andywar65 committed Feb 10, 2024
1 parent ca3ed89 commit e067507
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions project/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@ class ProjectViewTest(TestCase):
def setUpTestData(cls):
print("\nTest project views")

def test_select_language_view_no_htmx(self):
response = self.client.get(reverse("select_language"))
# response is unexpected, as it redirects to looks for a flatpage
self.assertEqual(response.status_code, 302)
print("\n-Test select language no htmx status 404")

def test_select_language_view(self):
response = self.client.get(
reverse("select_language"), headers={"HX-Request": "true"}
)
self.assertEqual(response.status_code, 200)
print("\n-Test select language status 200")

self.assertTemplateUsed(response, "htmx/language_selector.html")
print("\n-Test select language template")

def test_navbar_view(self):
response = self.client.get(reverse("nav_bar"), headers={"HX-Request": "true"})
self.assertEqual(response.status_code, 200)
Expand Down

0 comments on commit e067507

Please sign in to comment.