Commit 674bc88f authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

test: failIf was deprecated in favor of assertFalse in py3.1

parent 27e0a152c8ac
Pipeline #74284 passed with stages
in 2 minutes and 43 seconds
...@@ -122,7 +122,7 @@ class RelationWidgetTC(testlib.CubicWebTC): ...@@ -122,7 +122,7 @@ class RelationWidgetTC(testlib.CubicWebTC):
req.form = {'relation': 'language_to:Concept:subject'} req.form = {'relation': 'language_to:Concept:subject'}
view = self.vreg['views'].select('search_related_entities', req, view = self.vreg['views'].select('search_related_entities', req,
rset=lang.as_rset()) rset=lang.as_rset())
self.failIf(view.linkable_rset()) self.assertFalse(view.linkable_rset())
with self.admin_access.repo_cnx() as cnx: with self.admin_access.repo_cnx() as cnx:
lang_to_rtype = cnx.find('CWRType', name='language_to').one() lang_to_rtype = cnx.find('CWRType', name='language_to').one()
scheme = cnx.create_entity('ConceptScheme', title=u'languages', scheme = cnx.create_entity('ConceptScheme', title=u'languages',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment