Skip to content
Snippets Groups Projects
Verified Commit 7a6b12d3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8'ed

parent 8241e608
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -37,7 +37,7 @@ class CacheTest(unittest.TestCase):
def test_hash(self):
ent = db.Record()
assert type(Cache.hash_entity(ent)) is str
assert isinstance(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 type(self.cache.check_existing(ent2_hash)) is int
assert isinstance(self.cache.check_existing(ent2_hash), int)
assert self.cache.check_existing(ent_hash) is None
def test_hirarchy(self):
......
......@@ -53,7 +53,7 @@ data:
...
"""
header = get_header(to_file(file_content))
assert type(header["data"]) is list
assert isinstance(header["data"], list)
file_content = """
---
data:
......@@ -61,4 +61,4 @@ data:
...
"""
header = get_header(to_file(file_content))
assert type(header["data"]) is list
assert isinstance(header["data"], list)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment