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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
f6bac3e6
Commit
f6bac3e6
authored
5 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'd
parent
9bad8e2c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!217
TST: Make NamedTemporaryFiles Windows-compatible
,
!207
Resolve "Failing unit tests on Windows"
Pipeline
#58712
passed
5 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unittests/test_scanner.py
+3
-2
3 additions, 2 deletions
unittests/test_scanner.py
unittests/test_utilities.py
+2
-1
2 additions, 1 deletion
unittests/test_utilities.py
with
5 additions
and
3 deletions
unittests/test_scanner.py
+
3
−
2
View file @
f6bac3e6
...
@@ -128,9 +128,10 @@ def test_record_structure_generation():
...
@@ -128,9 +128,10 @@ def test_record_structure_generation():
assert
subd
[
0
][
"
identifier
"
]
==
"
climate-model-predict
"
assert
subd
[
0
][
"
identifier
"
]
==
"
climate-model-predict
"
assert
subd
[
0
][
"
Project
"
].
__class__
==
db
.
Record
assert
subd
[
0
][
"
Project
"
].
__class__
==
db
.
Record
assert
subd
[
0
][
"
DataAnalysis
"
]
==
os
.
path
.
join
(
"
examples_article
"
,
"
DataAnalysis
"
)
assert
subd
[
0
][
"
DataAnalysis
"
]
==
os
.
path
.
join
(
"
examples_article
"
,
"
DataAnalysis
"
)
assert
subc
[
0
][
"
DataAnalysis
"
]
is
True
assert
subc
[
0
][
"
DataAnalysis
"
]
is
True
assert
subd
[
0
][
"
project_dir
"
]
==
os
.
path
.
join
(
"
examples_article
"
,
"
DataAnalysis
"
,
"
2020_climate-model-predict
"
)
assert
subd
[
0
][
"
project_dir
"
]
==
os
.
path
.
join
(
"
examples_article
"
,
"
DataAnalysis
"
,
"
2020_climate-model-predict
"
)
assert
subc
[
0
][
"
project_dir
"
]
is
False
assert
subc
[
0
][
"
project_dir
"
]
is
False
# Check the copy flags for the first level in the hierarchy:
# Check the copy flags for the first level in the hierarchy:
...
...
This diff is collapsed.
Click to expand it.
unittests/test_utilities.py
+
2
−
1
View file @
f6bac3e6
...
@@ -35,7 +35,8 @@ def test_split_restricted_path():
...
@@ -35,7 +35,8 @@ def test_split_restricted_path():
assert
split_restricted_path
(
f
"
{
sep
}
test1
{
sep
}
test2
{
sep
}
bla
"
)
==
[
"
test1
"
,
"
test2
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}
test1
{
sep
}
test2
{
sep
}
bla
"
)
==
[
"
test1
"
,
"
test2
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}
test
{
sep
}{
sep
}
bla
"
)
==
[
"
test
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}
test
{
sep
}{
sep
}
bla
"
)
==
[
"
test
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}{
sep
}
test
{
sep
}
bla
"
)
==
[
"
test
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}{
sep
}
test
{
sep
}
bla
"
)
==
[
"
test
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}{
sep
}{
sep
}
test
{
sep
}{
sep
}
bla
{
sep
}{
sep
}{
sep
}{
sep
}
"
)
==
[
"
test
"
,
"
bla
"
]
assert
split_restricted_path
(
f
"
{
sep
}{
sep
}{
sep
}
test
{
sep
}{
sep
}
bla
{
sep
}{
sep
}{
sep
}{
sep
}
"
)
==
[
"
test
"
,
"
bla
"
]
def
test_dummy_class
():
def
test_dummy_class
():
...
...
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