Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglenister committed Mar 11, 2024
1 parent 0b263ce commit 01f5c6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/views/test_files_page.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from tests import PMGLiveServerTestCase
from tests.fixtures import dbfixture, HouseData, CommitteeData
from universal_analytics import Tracker
from unittest.mock import patch

Expand All @@ -8,12 +7,12 @@ class TestFilesPage(PMGLiveServerTestCase):
@patch.object(Tracker, "send")
def test_questions_file_page(self, mock_tracker):
"""
Test email alerts page (/questions/<path>)
Test files page (/questions/<path>)
"""
path = "test_file.pdf"
response = self.make_request(f"/questions/{path}", follow_redirects=False)
mock_tracker.assert_called_with(
"pageview",
"file_download",
"/questions/test_file.pdf",
referrer="",
uip="127.0.0.1",
Expand Down

0 comments on commit 01f5c6d

Please sign in to comment.