Skip to content

Commit

Permalink
Move invalid situations test to card list view
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Dec 19, 2024
1 parent 0842377 commit 6dafc58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cfgov/tccp/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ def test_basic_get(self):
response = self.make_request()
self.assertEqual(response.status_code, 200)

def test_invalid_situations(self):
response = self.make_request("?situations=fake+and+bad")
self.assertContains(response, "There are no results for your search.")

def test_situation_redirect(self):
tier = "Credit scores from 620 to 719"

Expand Down Expand Up @@ -88,6 +84,10 @@ def test_no_querystring_filters_by_good_tier(self):
self.assertContains(response, "Consumer Financial Protection Bureau")
self.assertContains(response, "There are no results for your search.")

def test_invalid_situations(self):
response = self.make_request("?situations=fake+and+bad")
self.assertContains(response, "There are no results for your search.")

def test_htmx_includes_only_results(self):
response = self.make_request(**{"HTTP_HX-Request": "true"})
self.assertNotContains(
Expand Down

0 comments on commit 6dafc58

Please sign in to comment.