archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f7115b8d4e0>
@given(directory_with_subdirs())
> def test_get_swhids_info_directory_context(archive_data, directory):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_identifiers.py:141:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_identifiers.py:159: in test_get_swhids_info_directory_context
dir_subdir_file = random.choice(dir_subdir_files)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <random.Random object at 0x18ad8d8>, seq = []
def choice(self, seq):
"""Choose a random element from a non-empty sequence."""
try:
i = self._randbelow(len(seq))
except ValueError:
> raise IndexError('Cannot choose from an empty sequence') from None
E IndexError: Cannot choose from an empty sequence
/usr/lib/python3.7/random.py:261: IndexError
TEST RESULT
TEST RESULT
- Run At
- Jun 16 2020, 7:52 PM