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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Commits
e688ef87
Verified
Commit
e688ef87
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'ed test_file.py
parent
d0401750
Branches
Branches containing commit
No related tags found
1 merge request
!53
Draft: ENH: file system: import
Pipeline
#24706
failed
3 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_file.py
+6
-7
6 additions, 7 deletions
tests/test_file.py
with
6 additions
and
7 deletions
tests/test_file.py
+
6
−
7
View file @
e688ef87
...
...
@@ -742,7 +742,9 @@ def test_import_file():
file_
.
checksum
=
checksum
file_
.
insert
()
re
=
db
.
execute_query
(
"
FIND FILE WHICH IS STORED AT /testfolder/subfolder/some_data.csv
"
,
unique
=
True
)
re
=
db
.
execute_query
(
"
FIND FILE WHICH IS STORED AT /testfolder/subfolder/some_data.csv
"
,
unique
=
True
)
assert
re
.
id
==
file_
.
id
assert
re
.
checksum
==
checksum
...
...
@@ -787,7 +789,6 @@ def test_import_checksum_mismatch():
errors
=
cm
.
entity
.
get_errors
()
assert
errors
[
0
].
description
==
'
Checksum test failed. File is corrupted.
'
finally
:
try
:
shutil
.
rmtree
(
path
)
...
...
@@ -911,8 +912,6 @@ def test_import_directoy_recursively():
pass
def
test_consistency_file_was_modified_2
():
# this test is different from test_consistency_file_was_modified in that
# the server does actually corrupt the 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