Closed AlexDo1 closed 1 year ago
Since a few Pull Requests, unit tests fail again.
Line 176 fails: https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/test/test_api_add_find.py#L173-L176
dummy_results is a list of two ImmutableResultSets here.
dummy_results
__init__() does not accept an instance of type ImmutableResultSet anymore and we can delete all lines of code, where isinstance(instance, ImmutableResultSet) is checked: https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/util/results.py#L64 https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/util/results.py#L84-L86
__init__()
ImmutableResultSet
isinstance(instance, ImmutableResultSet)
We also need additional tests for ImmutableResultSets:
ImmutableResultSets
.to_dict()
Since a few Pull Requests, unit tests fail again.
Line 176 fails: https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/test/test_api_add_find.py#L173-L176
dummy_results
is a list of two ImmutableResultSets here.__init__()
does not accept an instance of typeImmutableResultSet
anymore and we can delete all lines of code, whereisinstance(instance, ImmutableResultSet)
is checked: https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/util/results.py#L64 https://github.com/VForWaTer/metacatalog/blob/995c52224a20c165a9feb48c900cadcb99216668/metacatalog/util/results.py#L84-L86We also need additional tests for
ImmutableResultSets
:ImmutableResultSet
of anImmutableResultSet
is the sameImmutableResultSet
via its checksumImmutableResultSets
are never empty..to_dict()
method