[saem-devel] [PATCH 1 of 2 oaipmh V2] [test] enforce req.form handling while testing views

Philippe Pepiot philippe.pepiot at logilab.fr
Wed Feb 22 16:26:09 CET 2017


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1487773759 -3600
#      Wed Feb 22 15:29:19 2017 +0100
# Node ID b990e45e6bd34cf6c2c442b2f77a893726b96ea5
# Parent  7c62d81ae3c3ff7d1215063ee7766eacae355d66
# Available At https://hg.logilab.org/review/cubes/oaipmh
#              hg pull https://hg.logilab.org/review/cubes/oaipmh -r b990e45e6bd3
# Tested at https://jenkins.logilab.org/job/cubicweb-oaipmh/10/
[test] enforce req.form handling while testing views

Set metadataPrefix explicitely instead of relying on value of previous request
(using same req.form dictionnary).

diff --git a/test/test_oaipmh.py b/test/test_oaipmh.py
--- a/test/test_oaipmh.py
+++ b/test/test_oaipmh.py
@@ -491,6 +491,7 @@ class OAIPMHViewsTC(CubicWebTC, OAITestM
             self.assertIn('<identifier>{0}</identifier>'.format(alice), result)
             self.assertEqual(result.count('<identifier>'), 2)
             result = self.oai_request(req, verb='ListIdentifiers',
+                                      metadataPrefix='oai_dc',
                                       set='agent:kind:person')
             self.assertIn('<identifier>{0}</identifier>'.format(alice),
                           result)



More information about the saem-devel mailing list