Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
skos
Commits
ffe2b3903cba
Commit
674bc88f
authored
Aug 06, 2021
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
test/unittest_views.py
View file @
ffe2b390
...
...
@@ -122,7 +122,7 @@ class RelationWidgetTC(testlib.CubicWebTC):
req
.
form
=
{
'relation'
:
'language_to:Concept:subject'
}
view
=
self
.
vreg
[
'views'
].
select
(
'search_related_entities'
,
req
,
rset
=
lang
.
as_rset
())
self
.
failIf
(
view
.
linkable_rset
())
self
.
assertFalse
(
view
.
linkable_rset
())
with
self
.
admin_access
.
repo_cnx
()
as
cnx
:
lang_to_rtype
=
cnx
.
find
(
'CWRType'
,
name
=
'language_to'
).
one
()
scheme
=
cnx
.
create_entity
(
'ConceptScheme'
,
title
=
u
'languages'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment