# HG changeset patch # User Denis Laxalde # Date 1552570735 -3600 # Node ID ef2168f389f62da6be3c026f987992ea3791811b # Parent 2699e0f3f54a0fbde5d5820d8a35922988e7ea3c [test] Remove upper bound for cubicweb-localperms Version 0.4.0 does not use a deprecated API that we are planning to drop in forthcoming changesets. This requires changing expected values in unittest_cwconfig.py where we scan install cubes. * In CubicWebConfigurationTC.test_available_cubes(), localperms disappears from the list of expected cubes because this test method will look for new style cubes in located in cubicweb/test/data/libpython/ (we patch pkg_resources.iter_entry_points()) as well as old style cubes installed in $PREFIX/share/cubicweb/cubes; since the new cubicweb-localperms version is new-style, it won't be catched by this method. * In CubicWebConfigurationWithLegacyCubesTC.test_available_cubes(), localperms is still listed, but now with the package name, because this method will simply look at installed cubes whether old or new style. diff -r 2699e0f3f54a -r ef2168f389f6 cubicweb/test/unittest_cwconfig.py --- a/cubicweb/test/unittest_cwconfig.py Thu Mar 14 16:44:53 2019 +0100 +++ b/cubicweb/test/unittest_cwconfig.py Thu Mar 14 14:38:55 2019 +0100 @@ -125,7 +125,7 @@ def test_available_cubes(self, mock_iter_entry_points): expected_cubes = [ 'card', 'comment', 'cubicweb_comment', 'cubicweb_email', 'file', - 'cubicweb_file', 'cubicweb_forge', 'localperms', + 'cubicweb_file', 'cubicweb_forge', 'cubicweb_mycube', 'tag', ] self.assertEqual(self.config.available_cubes(), expected_cubes) @@ -215,7 +215,7 @@ 'email', 'file', 'forge', - 'localperms', + 'cubicweb_localperms', 'mycube', 'tag', ] diff -r 2699e0f3f54a -r ef2168f389f6 requirements/test-misc.txt --- a/requirements/test-misc.txt Thu Mar 14 16:44:53 2019 +0100 +++ b/requirements/test-misc.txt Thu Mar 14 14:38:55 2019 +0100 @@ -11,7 +11,7 @@ mock #fyzz XXX pip install fails cubicweb-file == 1.18.0 -cubicweb-localperms == 0.3.2 +cubicweb-localperms cubicweb-tag == 1.8.3 ## cubicweb/devtools/test