Skip to content

Commit

Permalink
tests: fix test for asset file link
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Oct 8, 2024
1 parent 2ed726d commit 0eec197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_asset_links_are_direct(self) -> None:
expected_asset_link = f'href="{asset.value.url}"'

# and finally check that the asset link is ACTUALLY pointing to the asset and not the list view page
self.assertIn("View asset", content, "View asset text not found.")
self.assertIn("View File", content, "View file text not found.")
self.assertIn(expected_asset_link, content, "Asset link not found in the page.")
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, "users/sponsorship_detail.html")
Expand Down

0 comments on commit 0eec197

Please sign in to comment.