1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #25780 -- Removed redundant status code assertions from tests.

This commit is contained in:
Jon Dufresne
2020-09-06 08:44:34 -07:00
committed by Mariusz Felisiak
parent 982e860b73
commit cee93c6ba1
5 changed files with 11 additions and 32 deletions

View File

@@ -154,7 +154,6 @@ class TestInline(TestDataMixin, TestCase):
# Identically named callable isn't present in the parent ModelAdmin,
# rendering of the add view shouldn't explode
response = self.client.get(reverse('admin:admin_inlines_novel_add'))
self.assertEqual(response.status_code, 200)
# View should have the child inlines section
self.assertContains(
response,
@@ -164,7 +163,6 @@ class TestInline(TestDataMixin, TestCase):
def test_callable_lookup(self):
"""Admin inline should invoke local callable when its name is listed in readonly_fields"""
response = self.client.get(reverse('admin:admin_inlines_poll_add'))
self.assertEqual(response.status_code, 200)
# Add parent object view should have the child inlines section
self.assertContains(
response,