Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.nixguix.lister::swh.lister.nixguix.lister.is_tarball
Failed

TEST RESULT

Run At
Oct 3 2022, 2:32 PM
Details
097 Args: 098 urls: name of the remote files for which the extension needs to be checked. 099 100 Returns: A tuple (bool, url). The boolean represents whether the url is an archive 101 or not. The second parameter is the actual url once the head request is issued 102 as a fallback of not finding out whether the urls are tarballs or not. 103 104 Example: 105 106 >>> is_tarball(['abc.zip']) UNEXPECTED EXCEPTION: TypeError("is_tarball() missing 1 required positional argument: 'request'") Traceback (most recent call last): File "/usr/lib/python3.7/doctest.py", line 1329, in __run compileflags, 1), test.globs) File "<doctest swh.lister.nixguix.lister.is_tarball[0]>", line 1, in <module> TypeError: is_tarball() missing 1 required positional argument: 'request' /var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/nixguix/lister.py:106: UnexpectedException