From 1a42c84e4ffc774f160ab401f5914d473bff9498 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 10 Aug 2012 14:01:33 +0200 Subject: [PATCH] fix test --- apps/oai/tests/oaipmhapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.20.1