self = <swh.storage.tests.test_storage.TestStorageGeneratedData object at 0x7fc46105eef0>
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fc461094978>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fc4610d5f28>
def test_origin_count(self, swh_storage, sample_data):
swh_storage.origin_add(sample_data.origins)
> assert swh_storage.origin_count("github") == 3
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:4017:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7fc461094978>
url_pattern = 'github', regexp = False, with_visit = False
def origin_count(self, url_pattern, regexp=False, with_visit=False):
return len(
self.origin_search(
url_pattern,
regexp=regexp,
with_visit=with_visit,
> limit=len(self._origins),
)
)
E TypeError: object of type 'PagedResult' has no len()
.tox/py3/lib/python3.7/site-packages/swh/storage/in_memory.py:763: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jul 30 2020, 4:17 PM