From ac9f00f3630480be431222aea72f79ae6dd4e141 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Sun, 12 Jun 2022 14:07:17 +0200 Subject: [PATCH] Test copy feature --- tests/modules/test_sitecrawler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/modules/test_sitecrawler.py b/tests/modules/test_sitecrawler.py index d4e0335..2471123 100644 --- a/tests/modules/test_sitecrawler.py +++ b/tests/modules/test_sitecrawler.py @@ -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)