Skip to content

Commit

Permalink
Merge pull request #8465 from cfpb/fix/ask-cfpb-httprequest
Browse files Browse the repository at this point in the history
Fix incorrect use of HttpRequest in Ask CFPB tests
  • Loading branch information
chosak committed Jun 12, 2024
2 parents 214a411 + 56915b2 commit e4c5597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfgov/ask_cfpb/tests/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setUp(self):

def test_create_answer_id_english(self):
"""Test that English page creation generates an Ask ID and pages."""
request = HttpRequest
request = HttpRequest()
request.user = self.user
test_page = AnswerPage(slug="test-page", title="Test page")
self.english_landing_page.add_child(instance=test_page)
Expand All @@ -48,7 +48,7 @@ def test_create_answer_id_english(self):

def test_create_answer_id_spanish(self):
"""Test that Spanish page creation generates an Ask ID and pages."""
request = HttpRequest
request = HttpRequest()
request.user = self.user
test_page = AnswerPage(
slug="spanish-page-1", title="Spanish page 1", language="es"
Expand Down

0 comments on commit e4c5597

Please sign in to comment.