Commit e54bace8 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Fix failing test

not sure it has passed once :/
parent eb2ecd27a338
......@@ -121,7 +121,9 @@ class RelationWidgetTC(testlib.CubicWebTC):
rset=lang.as_rset())
self.failIf(view.linkable_rset())
with self.admin_access.repo_cnx() as cnx:
scheme = cnx.create_entity('ConceptScheme', title=u'languages')
lang_to_rtype = cnx.find('CWRType', name='language_to').one()
scheme = cnx.create_entity('ConceptScheme', title=u'languages',
scheme_relation_type=lang_to_rtype)
scheme.add_concept(label=u'fr')
cnx.commit()
with self.admin_access.web_request() as req:
......
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