Convert metadata tests to use fixtures

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-05-10 19:31:20 -04:00
parent 7cf8cd2f28
commit 578c1b2f07
7 changed files with 136 additions and 76 deletions

View File

@@ -29,7 +29,7 @@ class DocumentUploadMetadataTestCase(MetadataTypeTestMixin, GenericDocumentViewT
enabled=True, label=TEST_SOURCE_LABEL,
uncompress=TEST_SOURCE_UNCOMPRESS_N
)
self._create_test_metadata_type()
self.test_document_type.metadata.create(
metadata_type=self.test_metadata_type, required=True
)