diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-01-12 15:34:21 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-25 06:33:12 +0200 |
| commit | fbe82f82555bc25dccb476c749ca062f0b522be3 (patch) | |
| tree | 4690ab0ece815edb8b9ddc250c1898928fcc8e34 /tests | |
| parent | 9a54a9172a724d38caf6a150f41f23d79b9bdbb7 (diff) | |
Refs #26761 -- Removed extra space in admin change list result header.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/admin_views/templates/admin/admin_views/article/change_list_results.html | 2 | ||||
| -rw-r--r-- | tests/admin_views/tests.py | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html index 775641233f..2eb7fe55b3 100644 --- a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html +++ b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html @@ -10,7 +10,7 @@ <thead> <tr> {% for header in result_headers %} -<th scope="col" {{ header.class_attrib }}> +<th scope="col"{{ header.class_attrib }}> {% if header.sortable %} {% if header.sort_priority > 0 %} <div class="sortoptions"> diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 4d3fade3c9..5fe6919ea8 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1006,26 +1006,26 @@ class AdminViewBasicTest(AdminViewBasicTestCase): ) response = self.client.get(reverse('admin6:admin_views_article_changelist')) for field_name in expected_sortable_fields: - self.assertContains(response, '<th scope="col" class="sortable column-%s">' % field_name) + self.assertContains(response, '<th scope="col" class="sortable column-%s">' % field_name) for field_name in expected_not_sortable_fields: - self.assertContains(response, '<th scope="col" class="column-%s">' % field_name) + self.assertContains(response, '<th scope="col" class="column-%s">' % field_name) def test_get_sortable_by_columns_subset(self): response = self.client.get(reverse('admin6:admin_views_actor_changelist')) - self.assertContains(response, '<th scope="col" class="sortable column-age">') - self.assertContains(response, '<th scope="col" class="column-name">') + self.assertContains(response, '<th scope="col" class="sortable column-age">') + self.assertContains(response, '<th scope="col" class="column-name">') def test_sortable_by_no_column(self): expected_not_sortable_fields = ('title', 'book') response = self.client.get(reverse('admin6:admin_views_chapter_changelist')) for field_name in expected_not_sortable_fields: - self.assertContains(response, '<th scope="col" class="column-%s">' % field_name) - self.assertNotContains(response, '<th scope="col" class="sortable column') + self.assertContains(response, '<th scope="col" class="column-%s">' % field_name) + self.assertNotContains(response, '<th scope="col" class="sortable column') def test_get_sortable_by_no_column(self): response = self.client.get(reverse('admin6:admin_views_color_changelist')) - self.assertContains(response, '<th scope="col" class="column-value">') - self.assertNotContains(response, '<th scope="col" class="sortable column') + self.assertContains(response, '<th scope="col" class="column-value">') + self.assertNotContains(response, '<th scope="col" class="sortable column') @override_settings(TEMPLATES=[{ |
