@@ -1036,7 +1036,7 @@ def test_post_summary_rendered_on_index(self, sample_post: Post) -> None:
10361036 tag_dir = "tags" ,
10371037 )
10381038
1039- assert 'class= "post-summary"' in html
1039+ assert "post-summary" in html
10401040 assert sample_post .title in html
10411041
10421042 def test_post_summary_shows_category_on_index (self , sample_post : Post ) -> None :
@@ -1051,7 +1051,7 @@ def test_post_summary_shows_category_on_index(self, sample_post: Post) -> None:
10511051 tag_dir = "tags" ,
10521052 )
10531053
1054- assert 'class= "category-link"' in html
1054+ assert "category-link" in html
10551055 assert "python" in html
10561056
10571057 def test_post_summary_shows_category_on_tag_page (self , sample_post : Post ) -> None :
@@ -1066,7 +1066,7 @@ def test_post_summary_shows_category_on_tag_page(self, sample_post: Post) -> Non
10661066 tag_dir = "tags" ,
10671067 )
10681068
1069- assert 'class= "category-link"' in html
1069+ assert "category-link" in html
10701070
10711071 def test_post_summary_omits_category_on_category_page (
10721072 self , sample_post : Post
@@ -1099,8 +1099,8 @@ def test_post_summary_shows_category_on_date_archive(
10991099 tag_dir = "tags" ,
11001100 )
11011101
1102- assert 'class= "post-summary"' in html
1103- assert 'class= "category-link"' in html
1102+ assert "post-summary" in html
1103+ assert "category-link" in html
11041104
11051105 def test_post_summary_shows_reading_time_when_enabled (
11061106 self , sample_post : Post
@@ -1191,7 +1191,7 @@ def test_shift_headings_in_summary(self) -> None:
11911191 )
11921192
11931193 # Post title in index is h2
1194- assert "<h2> " in html
1194+ assert "<h2" in html
11951195 # Subheading in content should be shifted to h3
11961196 assert "<h3>Subheading</h3>" in html
11971197
0 commit comments