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
Branches
Tags
No related merge requests found
...@@ -27,10 +27,10 @@ import argparse ...@@ -27,10 +27,10 @@ import argparse
from argparse import RawTextHelpFormatter from argparse import RawTextHelpFormatter
import caosdb as db import caosdb as db
from caosadvancedtools.crawler import Crawler from caosadvancedtools.crawler import Crawler
from scifolder import (AnalysisCFood, ExperimentCFood, PublicationCFood, from caosadvancedtools.verbosity import DEBUG, INFO, QUIET, VERBOSE
SimulationCFood, ProjectCFood) from scifolder import (AnalysisCFood, ExperimentCFood, ProjectCFood,
PublicationCFood, SimulationCFood)
def get_parser(): def get_parser():
...@@ -55,6 +55,9 @@ if __name__ == "__main__": ...@@ -55,6 +55,9 @@ if __name__ == "__main__":
print("Query done...") print("Query done...")
config = db.configuration.get_config() config = db.configuration.get_config()
c = Crawler(use_cache=True, access=access, c = Crawler(use_cache=True, access=access,
food=[ProjectCFood, AnalysisCFood, ExperimentCFood, verbosity=INFO,
PublicationCFood, SimulationCFood, ]) food=[ProjectCFood,
AnalysisCFood, ExperimentCFood,
PublicationCFood, SimulationCFood,
])
c.crawl(files) c.crawl(files)
...@@ -18,7 +18,7 @@ class CrawlerTest(unittest.TestCase): ...@@ -18,7 +18,7 @@ class CrawlerTest(unittest.TestCase):
# vanishing of the property # vanishing of the property
# thus an x is used here. Needs to be fixed. # thus an x is used here. Needs to be fixed.
exp = db.execute_query( 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) unique=True)
# There should be a Project with name TestProject which is referenced # 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.
Please register or to comment