Test copy feature

This commit is contained in:
Maximilien Rigaut 2022-06-12 14:07:17 +02:00
parent d2390563e4
commit ac9f00f363
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ files = [
("base/config/test6.bpr", "", None),
("base/config/test7.yml", "", None),
("base/templates/test8.yml", "", None),
("base/unparsable.php", "", ""),
]
@ -96,6 +97,7 @@ def test_result_crawler(list_files, env):
"""
crw = sitecrawler.SiteCrawler(_BASE, _DEST, env)
crw.set_all_preparsers()
crw.copy_unparsable_files()
for pp, dest in crw:
assert os.path.exists(dest)
assert os.path.isfile(dest)