From 3b7a241c0276979e0ce59406c0da06a0bcde7597 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 8 Feb 2017 17:04:40 -0400 Subject: [PATCH] Tag API tests cleanups. --- mayan/apps/tags/tests/test_api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mayan/apps/tags/tests/test_api.py b/mayan/apps/tags/tests/test_api.py index 1beb3441b7..06393e6bcb 100644 --- a/mayan/apps/tags/tests/test_api.py +++ b/mayan/apps/tags/tests/test_api.py @@ -38,7 +38,6 @@ class TagAPITestCase(APITestCase): ) def tearDown(self): - self.admin_user.delete() if hasattr(self, 'document_type'): self.document_type.delete() @@ -49,8 +48,8 @@ class TagAPITestCase(APITestCase): with open(TEST_SMALL_DOCUMENT_PATH) as file_object: document = self.document_type.new_document( - file_object=file_object, - ) + file_object=file_object, + ) return document @@ -142,7 +141,7 @@ class TagAPITestCase(APITestCase): tag = Tag.objects.create(color=TEST_TAG_COLOR, label=TEST_TAG_LABEL) document = self._document_create() - response = self.client.post( + self.client.post( reverse('rest_api:document-tag-list', args=(document.pk,)), {'tag_pk': tag.pk} )