Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.nixguix.tests.test_lister::test_url_endswith[one?p0=1&foo=bar.dic-True]
Failed

TEST RESULT

Run At
Oct 25 2022, 11:47 AM
Details
name = 'one?p0=1&foo=bar.dic', expected_result = True @pytest.mark.parametrize( "name,expected_result", [(f"one.{ext}", True) for ext in TARBALL_EXTENSIONS] + [(f"one.{ext}?foo=bar", True) for ext in TARBALL_EXTENSIONS] + [(f"one?p0=1&foo=bar.{ext}", True) for ext in DEFAULT_EXTENSIONS_TO_IGNORE] + [("two?file=something.el", False), ("foo?two=two&three=three", False)], ) def test_url_endswith(name, expected_result): urlparsed = urlparse(f"https://example.org/{name}") > assert url_endswith(urlparsed, TARBALL_EXTENSIONS) is expected_result E AssertionError: assert False is True E + where False = url_endswith(ParseResult(scheme='https', netloc='example.org', path='/one', params='', query='p0=1&foo=bar.dic', fragment=''), ['crate', 'gem', 'jar', 'love', 'zip', 'tar', ...]) .tox/py3/lib/python3.7/site-packages/swh/lister/nixguix/tests/test_lister.py:58: AssertionError