Fixed functional test
@@ -162,6 +162,7 @@ OpenCV/bin, * -> ./bin # I need this binaries
OpenCV/lib, * -> ./lib @ root_package=Pkg
OpenCV/data, * -> ./data @ root_package=Pkg, folder=True # Irrelevant
docs, * -> ./docs @ root_package=Pkg, folder=True, ignore_case=True, excludes="a b c" # Other
+licenses, * -> ./licenses @ root_package=Pkg, folder=True, ignore_case=True, excludes="a b c", keep_path=False # Other
'''
tmp_dir = temp_folder()
file_path = os.path.join(tmp_dir, "file.txt")
@@ -171,10 +172,12 @@ docs, * -> ./docs @ root_package=Pkg, folder=True, ignore_case=True, excludes="a
ret.copy = Mock()
ret.imports()
- expected = [call(u'*', u'./bin', u'OpenCV/bin', None, False, False, None),
- call(u'*', u'./lib', u'OpenCV/lib', u'Pkg', False, False, None),
- call(u'*', u'./data', u'OpenCV/data', u'Pkg', True, False, None),
- call(u'*', u'./docs', u'docs', u'Pkg', True, True, [u'"a', u'b', u'c"'])]
+ expected = [call(u'*', u'./bin', u'OpenCV/bin', None, False, False, None, True),
+ call(u'*', u'./lib', u'OpenCV/lib', u'Pkg', False, False, None, True),
+ call(u'*', u'./data', u'OpenCV/data', u'Pkg', True, False, None, True),
+ call(u'*', u'./docs', u'docs', u'Pkg', True, True, [u'"a', u'b', u'c"'], True),
+ call(u'*', u'./licenses', u'licenses', u'Pkg', True, True, [u'"a', u'b', u'c"'],
+ False)]
self.assertEqual(ret.copy.call_args_list, expected)
def test_package_settings(self):
