diff --git a/integrationtests/full_test/crawl.py b/integrationtests/full_test/crawl.py index d60e920f47a65db53e4b2b737cafa0d9aed29a95..0f60942d7d8af5c2ccd4680165f2002163026959 100755 --- a/integrationtests/full_test/crawl.py +++ b/integrationtests/full_test/crawl.py @@ -27,10 +27,10 @@ import argparse from argparse import RawTextHelpFormatter import caosdb as db - from caosadvancedtools.crawler import Crawler -from scifolder import (AnalysisCFood, ExperimentCFood, PublicationCFood, - SimulationCFood, ProjectCFood) +from caosadvancedtools.verbosity import DEBUG, INFO, QUIET, VERBOSE +from scifolder import (AnalysisCFood, ExperimentCFood, ProjectCFood, + PublicationCFood, SimulationCFood) def get_parser(): @@ -55,6 +55,9 @@ if __name__ == "__main__": print("Query done...") config = db.configuration.get_config() c = Crawler(use_cache=True, access=access, - food=[ProjectCFood, AnalysisCFood, ExperimentCFood, - PublicationCFood, SimulationCFood, ]) + verbosity=INFO, + food=[ProjectCFood, + AnalysisCFood, ExperimentCFood, + PublicationCFood, SimulationCFood, + ]) c.crawl(files) diff --git a/integrationtests/full_test/test_crawler.py b/integrationtests/full_test/test_crawler.py index d3952f09bde9a930b5b9bc28d196f1178b5a78bc..e4f559ed134d6572b83f71706d7afe01e2e8c7c5 100755 --- a/integrationtests/full_test/test_crawler.py +++ b/integrationtests/full_test/test_crawler.py @@ -18,7 +18,7 @@ class CrawlerTest(unittest.TestCase): # vanishing of the property # thus an x is used here. Needs to be fixed. exp = db.execute_query( - "FIND Experiment with date=2019-02-03 and identifier='x'", + "FIND Experiment with date=2019-02-03 and not identifier", unique=True) # There should be a Project with name TestProject which is referenced