Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
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-advanced-user-tools
Commits
7a6b12d3
Verified
Commit
7a6b12d3
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'ed
parent
8241e608
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
integrationtests/single_tests/test_crawler.py
+2
-2
2 additions, 2 deletions
integrationtests/single_tests/test_crawler.py
unittests/test_cache.py
+2
-2
2 additions, 2 deletions
unittests/test_cache.py
unittests/test_read_md_header.py
+2
-2
2 additions, 2 deletions
unittests/test_read_md_header.py
with
6 additions
and
6 deletions
integrationtests/single_tests/test_crawler.py
+
2
−
2
View file @
7a6b12d3
...
...
@@ -85,7 +85,7 @@ class CrawlerTest(unittest.TestCase):
for
el
in
[
self
.
exp
,
self
.
ana
,
self
.
pub
,
self
.
rts
]:
try
:
el
.
delete
()
except
:
except
BaseException
:
pass
...
...
@@ -104,5 +104,5 @@ class CrawlerTestExist(CrawlerTest):
for
el
in
[
self
.
exp
,
self
.
ana
,
self
.
pub
,
self
.
rts
]:
try
:
el
.
delete
()
except
:
except
BaseException
:
pass
This diff is collapsed.
Click to expand it.
unittests/test_cache.py
+
2
−
2
View file @
7a6b12d3
...
...
@@ -37,7 +37,7 @@ class CacheTest(unittest.TestCase):
def
test_hash
(
self
):
ent
=
db
.
Record
()
assert
typ
e
(
Cache
.
hash_entity
(
ent
)
)
is
str
assert
isinstanc
e
(
Cache
.
hash_entity
(
ent
)
,
str
)
assert
(
Cache
.
hash_entity
(
ent
)
!=
Cache
.
hash_entity
(
db
.
Record
().
add_parent
(
"
lol
"
)))
...
...
@@ -48,7 +48,7 @@ class CacheTest(unittest.TestCase):
ent_hash
=
Cache
.
hash_entity
(
ent
)
ent2_hash
=
Cache
.
hash_entity
(
ent2
)
self
.
cache
.
insert
(
ent2_hash
,
1235
)
assert
typ
e
(
self
.
cache
.
check_existing
(
ent2_hash
)
)
is
int
assert
isinstanc
e
(
self
.
cache
.
check_existing
(
ent2_hash
)
,
int
)
assert
self
.
cache
.
check_existing
(
ent_hash
)
is
None
def
test_hirarchy
(
self
):
...
...
This diff is collapsed.
Click to expand it.
unittests/test_read_md_header.py
+
2
−
2
View file @
7a6b12d3
...
...
@@ -53,7 +53,7 @@ data:
...
"""
header
=
get_header
(
to_file
(
file_content
))
assert
typ
e
(
header
[
"
data
"
]
)
is
list
assert
isinstanc
e
(
header
[
"
data
"
]
,
list
)
file_content
=
"""
---
data:
...
...
@@ -61,4 +61,4 @@ data:
...
"""
header
=
get_header
(
to_file
(
file_content
))
assert
typ
e
(
header
[
"
data
"
]
)
is
list
assert
isinstanc
e
(
header
[
"
data
"
]
,
list
)
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