def test_glob_resources_subdir(self, resource_root): files = sorted( utils._glob_resources(resource_root, 'html/subdir', '.html')) assert files == ['html/subdir/subdir-file.html']
def test_glob_resources_zipfile(self, html_zip): files = sorted(utils._glob_resources(html_zip, 'html', '.html')) assert files == ['html/test1.html', 'html/test2.html']
def test_glob_resources(self, resource_root): files = sorted(utils._glob_resources(resource_root, 'html', '.html')) assert files == ['html/test1.html', 'html/test2.html']
def test_glob_resources_pathlib(self, html_path, package_path): files = sorted(utils._glob_resources(package_path, 'html', '.html')) assert files == ['html/test1.html', 'html/test2.html']