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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
FAIR Data Spaces
RuQaD
Commits
8bd8292f
Commit
8bd8292f
authored
5 months ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
TST: added a test for display of the license check warning
parent
42079d5c
No related branches found
No related tags found
1 merge request
!7
FAIRness check
Pipeline
#58835
passed
5 months ago
Stage: info
Stage: setup
Stage: style
Stage: code-analysis
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
end-to-end-tests/test_crawler.py
+7
-1
7 additions, 1 deletion
end-to-end-tests/test_crawler.py
with
7 additions
and
1 deletion
end-to-end-tests/test_crawler.py
+
7
−
1
View file @
8bd8292f
...
@@ -26,13 +26,19 @@ from ruqad.crawler import trigger_crawler
...
@@ -26,13 +26,19 @@ 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
(
capsys
):
"""
"""
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
))
retval
,
ent_qc
=
trigger_crawler
(
os
.
fspath
(
DATADIR
))
retval
,
ent_qc
=
trigger_crawler
(
os
.
fspath
(
DATADIR
))
stdout
,
stderr
=
capsys
.
readouterr
()
# Check whether the warning is displayed for the license check:
assert
"
/1222/export.eln does not contain a license.
"
in
stdout
assert
"
/1223/export.eln does not contain a license.
"
not
in
stdout
# Check that validation of metadata was successful:
# Check that validation of metadata was successful:
assert
retval
assert
retval
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment