Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RuQaD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
FAIR Data Spaces
RuQaD
Merge requests
!5
Draft: trigger crawler
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Draft: trigger crawler
f-trigger-crawler
into
main
Overview
0
Commits
8
Pipelines
5
Changes
8
Merged
Alexander Schlemmer
requested to merge
f-trigger-crawler
into
main
8 months ago
Overview
0
Commits
8
Pipelines
5
Changes
8
0
0
Merge request reports
Compare
main
version 5
abee71f5
7 months ago
version 4
a13bf412
7 months ago
version 3
c4ed885b
8 months ago
version 2
c4ed885b
8 months ago
version 1
5ca6576e
8 months ago
main (base)
and
latest version
latest version
abee71f5
8 commits,
7 months ago
version 5
abee71f5
8 commits,
7 months ago
version 4
a13bf412
7 commits,
7 months ago
version 3
c4ed885b
6 commits,
8 months ago
version 2
c4ed885b
24 commits,
8 months ago
version 1
5ca6576e
23 commits,
8 months ago
8 files
+
211
−
9
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
end-to-end-tests/test_crawler.py
+
3
−
7
View file @ abee71f5
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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