Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.test_common::test_check_archive_helper
Failed

TEST RESULT

Run At
May 28 2020, 1:37 PM
Details
def test_check_archive_helper(): # success for archive_name, archive_name_to_check in [ ("filename0", "something/filename0"), ("archive.zip", "client_1/archive_noisynoise.zip"), ]: > check_archive(archive_name, archive_name_to_check) .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/test_common.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ archive_name = 'filename0', archive_name_to_check = 'something/filename0' def check_archive(archive_name: str, archive_name_to_check: str): """Helper function to ensure archive_name is present within the archive_name_to_check. Raises: AssertionError if archive_name is not present within archive_name_to_check """ pattern = re.compile(".*/.*_%s" % archive_name) > assert pattern.match(archive_name_to_check) is not None E AssertionError: assert None is not None E + where None = <built-in method match of re.Pattern object at 0x7f8bcd4a6130>('something/filename0') E + where <built-in method match of re.Pattern object at 0x7f8bcd4a6130> = re.compile('.*/.*_filename0').match .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/common.py:137: AssertionError