From 10ef7e62e4dbb21c190e526023177cd767c19ff5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Sat, 17 Aug 2019 12:22:35 +0200
Subject: [PATCH] MAINT: fixes due to API changes

---
 integrationtests/full_test/crawl.py        | 13 ++++++++-----
 integrationtests/full_test/test_crawler.py |  2 +-
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/integrationtests/full_test/crawl.py b/integrationtests/full_test/crawl.py
index d60e920f..0f60942d 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 d3952f09..e4f559ed 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
-- 
GitLab