Skip to content
Snippets Groups Projects
Commit b264e743 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: get tests running again

parent e42f344c
No related branches found
No related tags found
3 merge requests!91Release 0.3,!69Refactor Identifiable and caches,!67MAINT: introduce an identifiable class
Pipeline #30543 passed
......@@ -111,7 +111,7 @@ class Identifiable():
3. equal if attribute representations are equal
"""
if not isinstance(other, Identifiable):
raiser ValueError("Identifiable can only be compared to other Identifiable objects.")
raise ValueError("Identifiable can only be compared to other Identifiable objects.")
elif self.record_id is not None and other.record_id is not None:
return self.record_id == other.record_id
elif self.path is not None and other.path is not None:
......
......@@ -49,7 +49,7 @@ class IdentifiedCache(object):
caches).
"""
def __init__(self):
def __init__(self):
self._cache = {}
self._identifiables = []
......
......@@ -18,7 +18,8 @@ def test_file_identifiable():
identifiable = ident.get_identifiable(file_obj)
# the path is copied to the identifiable
assert file_obj != identifiable
with raises(ValueError):
file_obj != identifiable
assert file_obj.path == identifiable.path
# since the path does not exist in the data in ident, the follwoing functions return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment