# HG changeset patch # User Denis Laxalde # Date 1528728638 -7200 # Node ID 8b3f1d1f0939acda297158c770db5cdea60a0709 # Parent f0a5c2fa2b5d2626f085ec289533a4d48efa7d28 [test] Update webconfig's tests accounting for cubicweb-file being now a package WebconfigTC.test_locate_all_files and WebconfigTC.test_locate_resource assumed that cubicweb-file was installed in /cubes/file whereas, from the latest release, it is now a standard Python package thus installed in site-packages as cubicweb_file. We simply update base directory of these two tests. diff -r f0a5c2fa2b5d -r 8b3f1d1f0939 cubicweb/web/test/unittest_webconfig.py --- a/cubicweb/web/test/unittest_webconfig.py Wed Jun 06 18:54:24 2018 +0200 +++ b/cubicweb/web/test/unittest_webconfig.py Mon Jun 11 16:50:38 2018 +0200 @@ -45,7 +45,7 @@ def test_locate_resource(self): self.assertIn('FILE_ICON', self.config.uiprops) rname = self.config.uiprops['FILE_ICON'].replace(self.config.datadir_url, '') - self.assertIn('file', self.config.locate_resource(rname)[0].split(os.sep)) + self.assertIn('cubicweb_file', self.config.locate_resource(rname)[0].split(os.sep)) cubicwebcsspath = self.config.locate_resource('cubicweb.css')[0].split(os.sep) # 'shared' if tests under apycot @@ -57,7 +57,7 @@ wdocfiles = list(self.config.locate_all_files('toc.xml')) for fpath in wdocfiles: self.assertTrue(path.exists(fpath), fpath) - for expected in [path.join('cubes', 'file', 'wdoc', 'toc.xml'), + for expected in [path.join('cubicweb_file', 'wdoc', 'toc.xml'), path.join('cubicweb', 'web', 'wdoc', 'toc.xml')]: for fpath in wdocfiles: if fpath.endswith(expected):