mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed tests introduced for #15915
The tests didn't clean up properly. The commit that introduced the
errors was 8c427448d5.
Thanks to Trac alias rizumu for spotting this.
This commit is contained in:
@@ -173,10 +173,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
|
|||||||
class PermissionDuplicationTestCase(TestCase):
|
class PermissionDuplicationTestCase(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self._original_user_permission = models.User._meta.permissions
|
self._original_permissions = models.Permission._meta.permissions[:]
|
||||||
|
|
||||||
def tearUp(self):
|
def tearDown(self):
|
||||||
models.User._meta.permissions = self._original_user_permissions
|
models.Permission._meta.permissions = self._original_permissions
|
||||||
|
|
||||||
def test_duplicated_permissions(self):
|
def test_duplicated_permissions(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user