Rename test method names for clarity

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-08-25 22:06:34 -04:00
parent 6503d9474d
commit 38980e5f75
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ class DocumentCheckoutTestCase(DocumentCheckoutTestMixin, GenericDocumentTestCas
)
)
def test_checkin_in(self):
def test_document_check_in(self):
self._check_out_test_document()
self.test_document.check_in()
@@ -36,7 +36,7 @@ class DocumentCheckoutTestCase(DocumentCheckoutTestMixin, GenericDocumentTestCas
)
)
def test_double_check_out(self):
def test_document_double_check_out(self):
self._create_test_case_superuser()
self._check_out_test_document()
@@ -48,7 +48,7 @@ class DocumentCheckoutTestCase(DocumentCheckoutTestMixin, GenericDocumentTestCas
block_new_version=True
)
def test_auto_check_in(self):
def test_document_auto_check_in(self):
self._check_out_test_document()
# Ensure we wait from longer than the document check out expiration
+4 -2
View File
@@ -285,7 +285,7 @@ class DocumentCheckoutViewTestCase(
response, text=STATE_LABELS[STATE_CHECKED_OUT], status_code=200
)
def test_document_checkout_list_view_no_permission(self):
def test_document_check_out_list_view_no_permission(self):
self._check_out_test_document()
self.grant_access(
@@ -298,7 +298,7 @@ class DocumentCheckoutViewTestCase(
response=response, text=self.test_document.label, status_code=200
)
def test_document_checkout_list_view_with_access(self):
def test_document_check_out_list_view_with_access(self):
self._check_out_test_document()
self.grant_access(
@@ -333,6 +333,7 @@ class DocumentCheckoutViewTestCase(
}
)
self.assertEqual(response.status_code, 302)
self.assertTrue(self.test_document.is_checked_out())
def test_document_check_in_forcefull_view_with_access(self):
@@ -350,6 +351,7 @@ class DocumentCheckoutViewTestCase(
}
)
self.assertEqual(response.status_code, 302)
self.assertFalse(self.test_document.is_checked_out())