Skip to content

Commit dee74f1

Browse files
Update law report detail view test to assert for volumes instead of judgments and remove hide_follow_button context check.
1 parent ea1c64f commit dee74f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

peachjam/tests/test_law_reports.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ def test_law_report_detail_view_shows_law_report_judgments_and_non_empty_volumes
118118
response = self.client.get(self.law_report.get_absolute_url())
119119

120120
self.assertEqual(response.status_code, 200)
121-
self.assertContains(response, self.first_judgment.title)
122-
self.assertContains(response, self.second_judgment.title)
123-
self.assertNotContains(response, self.unrelated_judgment.title)
121+
# The detail page now lists volumes, not judgments directly
122+
self.assertContains(response, self.volume_1.title)
123+
self.assertContains(response, self.volume_2.title)
124+
self.assertNotContains(response, self.empty_volume.title)
124125
self.assertEqual(self.law_report, response.context["law_report"])
125126
self.assertIn(self.volume_1, response.context["law_report_volumes"])
126127
self.assertIn(self.volume_2, response.context["law_report_volumes"])
127128
self.assertNotIn(self.empty_volume, response.context["law_report_volumes"])
128-
self.assertTrue(response.context["hide_follow_button"])
129129

130130
def test_law_report_volume_detail_view_filters_to_selected_volume(self):
131131
response = self.client.get(self.volume_1.get_absolute_url())

0 commit comments

Comments
 (0)