fix test
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 10 Aug 2012 12:01:33 +0000 (14:01 +0200)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 10 Aug 2012 12:01:33 +0000 (14:01 +0200)
apps/oai/tests/oaipmhapi.py

index 6ef3b09..b4947fe 100644 (file)
@@ -19,8 +19,9 @@ class BookMetadataTest(WLTestCase):
         xml = path.join(path.dirname(__file__), 'files/antygona.xml')
         self.book2 = models.Book.from_xml_file(xml)
 
         xml = path.join(path.dirname(__file__), 'files/antygona.xml')
         self.book2 = models.Book.from_xml_file(xml)
 
-        self.catalogue = Catalogue()
         mr = MetadataRegistry()
         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)
         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)