Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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 Python Integration Tests
Commits
b62ee8a3
Commit
b62ee8a3
authored
5 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: added comments
parent
a7fda873
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_file.py
+9
-0
9 additions, 0 deletions
tests/test_file.py
with
9 additions
and
0 deletions
tests/test_file.py
+
9
−
0
View file @
b62ee8a3
...
...
@@ -354,6 +354,9 @@ def test_consistency_file_was_modified():
assert_equal
(
c
.
messages
[
"
Info
"
,
0
][
0
],
"
File system is consistent.
"
)
# run consistency check with modified warning)
# TODO fix
# This smells badly. The argument is meant to transport the location
# that is checked. Understanding of the code is difficult.
c
=
runCheck
(
None
,
"
-c FILE_WAS_MODIFIED
"
)
assert_is_not_none
(
c
.
messages
[
"
Error
"
,
0
])
assert_equal
(
...
...
@@ -412,6 +415,9 @@ def test_consistency_file_does_not_exist():
assert_equal
(
c
.
messages
[
"
Info
"
,
0
][
0
],
"
File system below debug/ is consistent.
"
)
# TODO fix
# This smells badly. The argument is meant to transport the location
# that is checked. Understanding of the code is difficult.
c
=
runCheck
(
None
,
"
-c FILE_DOES_NOT_EXIST
"
)
assert_is_not_none
(
c
.
messages
[
"
Error
"
,
0
])
assert_equal
(
...
...
@@ -452,6 +458,9 @@ def test_consistency_unknown_file():
assert_is_not_none
(
c
.
messages
[
"
Info
"
,
0
])
assert_equal
(
c
.
messages
[
"
Info
"
,
0
][
0
],
"
File system is consistent.
"
)
# TODO fix
# This smells badly. The argument is meant to transport the location
# that is checked. Understanding of the code is difficult.
c
=
runCheck
(
None
,
"
-c UNKNOWN_FILE
"
)
assert_is_not_none
(
c
.
messages
[
"
Warning
"
,
0
])
assert_equal
(
c
.
messages
[
"
Warning
"
,
0
][
0
],
'
debug/: Unknown file.
'
)
...
...
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