Skip to content
Snippets Groups Projects

Draft: trigger crawler

Merged Alexander Schlemmer requested to merge f-trigger-crawler into main

Files

+ 3
7
@@ -18,21 +18,17 @@
@@ -18,21 +18,17 @@
tests the crawling of ELN files
tests the crawling of ELN files
"""
"""
import os
import os
import zipfile
from datetime import datetime
from pathlib import Path
from pathlib import Path
from tempfile import NamedTemporaryFile
from time import sleep
from uuid import uuid1
from ruqad.crawler import trigger_crawler
from ruqad.crawler import trigger_crawler
DATADIR = Path(__file__).parent / "data" / "crawler_data"
DATADIR = Path(__file__).parent / "data" / "crawler_data"
 
def test_crawl():
def test_crawl():
"""
"""
crawl a directory as it would be created by export from kadi and running a data quality check
crawl a directory as it would be created by export from kadi and running a data quality check
"""
"""
print(os.listdir(DATADIR))
print(os.listdir(DATADIR))
trigger_crawler(os.fspath(DATADIR))
retval = trigger_crawler(os.fspath(DATADIR))
klsdjf
assert retval
Loading