Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
1ec5b23b92e7
Commit
7230f4bf
authored
Mar 13, 2019
by
Denis Laxalde
Browse files
[test] Inline _test_available_cubes() method in cwconfig tests
Improves readability.
parent
ad995a9905f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/test/unittest_cwconfig.py
View file @
1ec5b23b
...
...
@@ -128,13 +128,10 @@ class CubicWebConfigurationTC(BaseTestCase):
'cubicweb_file'
,
'cubicweb_forge'
,
'localperms'
,
'cubicweb_mycube'
,
'tag'
,
]
self
.
_test_
available_cubes
(
expected_cubes
)
self
.
assertEqual
(
self
.
config
.
available_cubes
(
),
expected_cubes
)
mock_iter_entry_points
.
assert_called_once_with
(
group
=
'cubicweb.cubes'
,
name
=
None
)
def
_test_available_cubes
(
self
,
expected_cubes
):
self
.
assertEqual
(
self
.
config
.
available_cubes
(),
expected_cubes
)
def
test_reorder_cubes
(
self
):
# forge depends on email and file and comment
# email depends on file
...
...
@@ -218,7 +215,7 @@ class CubicWebConfigurationWithLegacyCubesTC(CubicWebConfigurationTC):
# test dependencies
'card'
,
'file'
,
'localperms'
,
'tag'
,
]))
self
.
_test_
available_cubes
(
expected_cubes
)
self
.
assertEqual
(
self
.
config
.
available_cubes
(
),
expected_cubes
)
def
test_reorder_cubes_recommends
(
self
):
from
cubes.comment
import
__pkginfo__
as
comment_pkginfo
...
...
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