Fix document type change views tests

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-23 01:46:44 -04:00
parent 4fed1111f4
commit fddd8a56c2

View File

@@ -84,9 +84,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
response = self._request_document_type_edit(
document_type=document_type_2
)
self.assertContains(
response=response, text='Select a valid choice', status_code=200
)
self.assertEqual(response.status_code, 302)
self.assertEqual(
Document.objects.get(pk=self.test_document.pk).document_type,
@@ -140,9 +138,7 @@ class DocumentsViewsTestCase(GenericDocumentViewTestCase):
response = self._request_multiple_document_type_edit(
document_type=document_type_2
)
self.assertContains(
response=response, text='Select a valid choice.', status_code=200
)
self.assertEqual(response.status_code, 302)
self.assertEqual(
Document.objects.first().document_type, self.test_document_type