X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/46085cc5f0fe3cbac5243fe37cf7c29513190068..1405761d13e0ba62db4b1f9a9d5fa1472142b6d0:/apps/oai/tests/oaipmhapi.py diff --git a/apps/oai/tests/oaipmhapi.py b/apps/oai/tests/oaipmhapi.py index 6ef3b096c..b4947fe3d 100644 --- a/apps/oai/tests/oaipmhapi.py +++ b/apps/oai/tests/oaipmhapi.py @@ -19,8 +19,9 @@ class BookMetadataTest(WLTestCase): xml = path.join(path.dirname(__file__), 'files/antygona.xml') self.book2 = models.Book.from_xml_file(xml) - self.catalogue = Catalogue() mr = MetadataRegistry() + self.catalogue = Catalogue(mr) + mr.registerWriter('oai_dc', oai_dc_writer) nsmap = {'oai_dc': NS_OAIDC, 'dc': NS_DC, 'xsi': NS_XSI} self.xml = XMLTreeServer(self.catalogue, mr, nsmap)