diff --git a/tests/scifolder_cfood.yml b/tests/scifolder_cfood.yml index d765d16f18aa64e06cdef5b954fe32c150c80b51..f8dc2023bf6139011420953ceab09c3fa2621b5c 100644 --- a/tests/scifolder_cfood.yml +++ b/tests/scifolder_cfood.yml @@ -17,16 +17,18 @@ root: README: type: file + representer: markdown case: insensitive re: README\.md children: - - description: - type: TEXT - - responsible: - children: + description: type: TEXT - re: (?P<first_name>.+) (?P<last_name>.+) - handlers: - type: identifiable - name: idf_person + responsible: + children: + person: + type: TEXT + re: (?P<first_name>.+) (?P<last_name>.+) + handlers: + type: identifiable + name: idf_person diff --git a/tests/test_tool.py b/tests/test_tool.py index 3ba782c3b651dea57c84e9531a48f32a076074ad..a875305ac65dd043e30d83c215e3b6a5281bfb77 100755 --- a/tests/test_tool.py +++ b/tests/test_tool.py @@ -3,10 +3,12 @@ # Adapted from check-sfs # A. Schlemmer, 06/2021 -from newcrawler import crawl +from newcrawler import crawl_cfood from os.path import join, dirname +import yaml -def test_examples_article(): - m = crawl(join(dirname(__file__), "test_directories/examples_article"), - [join(dirname(__file__), "scifolder_cfood.yml")]) - assert True +def test_crawler(): + m = crawl_cfood(join(dirname(__file__), "test_directories/examples_article"), + join(dirname(__file__), "scifolder_cfood.yml")) + print(yaml.dump(m)) + assert False