Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
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
CaosDB Crawler
Commits
1b3a394a
Commit
1b3a394a
authored
Mar 28, 2023
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Typo
parent
4495790b
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!123
REL: Release v0.6.0
,
!107
ENH: setup logging and reporting for serverside execution
Pipeline
#35053
passed
Mar 28, 2023
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
integrationtests/test_use_case_simple_presentation.py
+1
-1
1 addition, 1 deletion
integrationtests/test_use_case_simple_presentation.py
unittests/test_tool.py
+2
-2
2 additions, 2 deletions
unittests/test_tool.py
with
3 additions
and
3 deletions
integrationtests/test_use_case_simple_presentation.py
+
1
−
1
View file @
1b3a394a
...
@@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog):
...
@@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog):
# test that a bad value for "remove_prefix" leads to runtime error
# test that a bad value for "remove_prefix" leads to runtime error
caplog
.
set_level
(
logging
.
DEBUG
,
logger
=
"
caoscrawler.crawl
"
)
caplog
.
set_level
(
logging
.
DEBUG
,
logger
=
"
caoscrawler.crawl
"
)
assert
1
=
crawler_main
(
assert
1
=
=
crawler_main
(
crawled_directory_path
=
os
.
path
.
join
(
DATADIR
),
crawled_directory_path
=
os
.
path
.
join
(
DATADIR
),
cfood_file_name
=
os
.
path
.
join
(
DATADIR
,
"
cfood.yml
"
),
cfood_file_name
=
os
.
path
.
join
(
DATADIR
,
"
cfood.yml
"
),
identifiables_definition_file
=
os
.
path
.
join
(
DATADIR
,
"
identifiables.yml
"
),
identifiables_definition_file
=
os
.
path
.
join
(
DATADIR
,
"
identifiables.yml
"
),
...
...
This diff is collapsed.
Click to expand it.
unittests/test_tool.py
+
2
−
2
View file @
1b3a394a
...
@@ -995,7 +995,7 @@ def test_deprecated_prefix_option():
...
@@ -995,7 +995,7 @@ def test_deprecated_prefix_option():
crawler_main
(
"
./
"
,
rfp
(
"
scifolder_cfood.yml
"
),
prefix
=
"
to/be/removed
"
)
crawler_main
(
"
./
"
,
rfp
(
"
scifolder_cfood.yml
"
),
prefix
=
"
to/be/removed
"
)
# Check that crawler main terminates with an error
# Check that crawler main terminates with an error
assert
1
=
crawler_main
(
"
./
"
,
rfp
(
"
scifolder_cfood.yml
"
),
prefix
=
"
to/be/removed
"
,
assert
1
=
=
crawler_main
(
"
./
"
,
rfp
(
"
scifolder_cfood.yml
"
),
prefix
=
"
to/be/removed
"
,
remove_prefix
=
"
to/be/removed
"
)
remove_prefix
=
"
to/be/removed
"
)
with
raises
(
ValueError
)
as
ve
:
with
raises
(
ValueError
)
as
ve
:
...
...
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