Skip to content
Snippets Groups Projects
Commit 10ef7e62 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: fixes due to API changes

parent 130928b7
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment