Commit 8d2af345 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[test] Drop commented out code

Little value in there...
parent 63c77336da4a
......@@ -356,55 +356,6 @@ class SEDAXSDExportFuncTC(XmlTestMixin, CubicWebTC):
'//xs:attribute[@name="id" and @use="optional"]')
self.assertEqual(len(references), 1)
# def test_profile2(self):
# """Check a minimal SEDA profile validating exArchiveTransfer1_SEDA2_min.xml."""
# self.skipTest('update me')
# with self.admin_access.client_cnx() as cnx:
# package = cnx.entity_from_eid(self.package_eid)
# bdo = cnx.entity_from_eid(self.bdo_eid)
# unit = cnx.entity_from_eid(self.unit_eid)
# appraisal_rule = cnx.entity_from_eid(self.appraisal_rule_eid)
# cnx.create_entity('SEDADataObjectGroupId', seda_data_object_group_id_from=bdo)
# cnx.create_entity('SEDADataObjectVersion', seda_data_object_version_from=bdo)
# cnx.create_entity('SEDAMimeType', seda_mime_type_from=bdo)
# cnx.create_entity('SEDAFormatId', seda_format_id_from=bdo)
# cnx.create_entity('SEDAOriginatingAgency', seda_originating_agency_from=unit)
# cnx.create_entity('SEDAStartDate', seda_start_date_from=unit)
# cnx.create_entity('SEDAAppraisalRule', seda_appraisal_rule_from=package,
# seda_appraisal_rule_to=appraisal_rule)
# cnx.commit()
# with self.admin_access.client_cnx() as cnx:
# package = cnx.entity_from_eid(self.package_eid)
# xsd = package.cw_adapt_to('SEDA-2.0.xsd').dump()
# self.check_xsd_profile(xsd, self.datapath('exArchiveTransfer1_SEDA2_min.xml'))
# def test_profile3(self):
# """Check a minimal SEDA profile validating exArchiveTransfert2_SEDA2_min.xml."""
# self.skipTest('update me')
# with self.admin_access.client_cnx() as cnx:
# package = cnx.entity_from_eid(self.package_eid)
# bdo = cnx.entity_from_eid(self.bdo_eid)
# unit = cnx.entity_from_eid(self.unit_eid)
# appraisal_rule = cnx.entity_from_eid(self.appraisal_rule_eid)
# related_ref = cnx.entity_from_eid(self.related_ref_eid)
# doaurt = cnx.entity_from_eid(self.doaurt_eid)
# cnx.create_entity('SEDADataObjectVersion', seda_data_object_version_from=bdo)
# cnx.create_entity('SEDAMimeType', seda_mime_type_from=bdo)
# cnx.create_entity('SEDAFormatId', seda_format_id_from=bdo)
# cnx.create_entity('SEDAOriginatingAgency', seda_originating_agency_from=unit)
# cnx.create_entity('SEDAStartDate', seda_start_date_from=unit)
# cnx.create_entity('SEDAArchivalAgencyArchiveUnitIdentifier',
# seda_archival_agency_archive_unit_identifier_from=unit)
# cnx.create_entity('SEDAAppraisalRule', seda_appraisal_rule_from=package,
# seda_appraisal_rule_to=appraisal_rule)
# cnx.create_entity('SEDAReferences', seda_references_from=related_ref,
# seda_references_to=doaurt)
# cnx.commit()
# with self.admin_access.client_cnx() as cnx:
# package = cnx.entity_from_eid(self.package_eid)
# xsd = package.cw_adapt_to('SEDA-2.0.xsd').dump()
# self.check_xsd_profile(xsd, self.datapath('exArchiveTransfert2_SEDA2_min.xml'))
if __name__ == '__main__':
import unittest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment