File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments