[PATCH eac] Resolve errors in the tests

Guillaume Vandevelde guillaume.vandevelde at logilab.fr
Tue Sep 3 16:52:54 CEST 2019


# HG changeset patch
# User Guillaume Vandevelde <gvandevelde at logilab.fr>
# Date 1567522129 -7200
#      Tue Sep 03 16:48:49 2019 +0200
# Node ID 9e02597f3671f10b8e543966fec2d4e8c93273a3
# Parent  529f93fa0fee289de55b2c6fea3639a049725107
# Available At http://hg.logilab.org/review/cubes/eac
#              hg pull http://hg.logilab.org/review/cubes/eac -r 9e02597f3671
Resolve errors in the tests

diff -r 529f93fa0fee -r 9e02597f3671 test/test_dataimport.py
--- a/test/test_dataimport.py	Thu Aug 08 18:46:19 2019 +0200
+++ b/test/test_dataimport.py	Tue Sep 03 16:48:49 2019 +0200
@@ -297,16 +297,14 @@
                                           u"L'inspecteur Canardo"])
               ]),
               'text_format': set([u'text/html']),
-              'items': set([u'<ul xmlns="urn:isbn:1-931666-33-4" '
-                            u'xmlns:xlink="http://www.w3.org/1999'
-                            u'/xlink">\n\t    <li>\n\t      <span style="font-       '
-                            u'style:italic">1450-1950\n\t      </span>\n\t      '
-                            u'(1929)\n\t    </li>\n\t    <li>\n\t      <span '
-                            u'style="font-style:italic">Globe\n\t      '
-                            u'Gliding\n\t      </span>\n\t      (1930)\n\t    '
-                            u'</li>\n\t    <li>\n\t      <span style="font-'
-                            u'       style:italic">Gems\n\t      </span>\n\t'
-                            u'      (1931)\n\t    </li>\n\t  </ul>\n      ']),
+              'items': set([u'<ul xmlns="urn:isbn:1-931666-33-4" xmlns:xlink="http://www'
+                            u'.w3.org/1999/xlink">\n\t    <li>\n\t      <span style="fon'
+                            u't-       style:italic">1450-1950\n\t      </span>\n\t     '
+                            u' (1929)\n\t    </li>\n\t    <li>\n\t      <span style="fon'
+                            u't-style:italic">Globe\n\t      Gliding\n\t      </span>\n\t'
+                            u'      (1930)\n\t    </li>\n\t    <li>\n\t      <span style'
+                            u'="font-       style:italic">Gems\n\t      </span>\n\t     '
+                            u' (1931)\n\t    </li>\n\t  </ul>']),
               'items_format': set([u'text/html']),
               'history_agent': set(['authorityrecord-FRAD033_EAC_00001']),
               },
@@ -578,7 +576,7 @@
               'description_format': set([u'text/html']),
               'relation_entry': set([u'Some relation entry\n          ']),
               'xml_attributes': set([u'{}']),
-              'date_relation': ['61'],
+              'date_relation': ['65'],
               },
              ),
             ('DateEntity', _gen_extid(),
@@ -597,7 +595,7 @@
               'description_format': set([u'text/html']),
               'relation_entry': set([u'Some relation entry\n          ']),
               'xml_attributes': set([u'{}']),
-              'date_relation': ['63'],
+              'date_relation': ['67'],
               },
              ),
             ('DateEntity', _gen_extid(),
@@ -819,7 +817,7 @@
                                cwuri=u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074')
             cnx.commit()
             created, updated = testutils.eac_import(cnx, fpath)
-            self.assertEqual(len(created), 73)
+            self.assertEqual(len(created), 77)
             self.assertEqual(updated, set())
             rset = cnx.find('AuthorityRecord', isni=u'22330001300016')
             self.assertEqual(len(rset), 1)



More information about the saem-devel mailing list