Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.cli.test_client::test_cli_validation_metadata
Failed

TEST RESULT

Run At
Oct 12 2020, 6:12 PM
Details
sample_archive = {'data': b'PK\x03\x04\x14\x00\x00\x00\x00\x00\x88\x81LQ\xcba\xb4c\x14\x00\x00\x00\x14\x00\x00\x00\x05\x00\x00\x00file1.../pytest-0/test_cli_validation_metadata0/tmpjvbstt12', 'length': 128, 'md5sum': '2e20191c1ff8fe850129d5c01f0f2452', ...} caplog = <_pytest.logging.LogCaptureFixture object at 0x7f5c2df5cac8> patched_tmp_path = <function patched_tmp_path at 0x7f5c2e8c0e18> cli_runner = <click.testing.CliRunner object at 0x7f5c2e73e1d0> slug = '1db6cf93-f51d-404f-b6c6-cd5967afa084' def test_cli_validation_metadata( sample_archive, caplog, patched_tmp_path, cli_runner, slug ): """Multiple metadata flags scenario (missing, conflicts) properly fails the calls """ > metadata_path = os.path.join(patched_tmp_path, "metadata.xml") .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = <function patched_tmp_path at 0x7f5c2e8c0e18>, p = ('metadata.xml',) def join(a, *p): """Join two or more pathname components, inserting '/' as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.""" > a = os.fspath(a) E TypeError: expected str, bytes or os.PathLike object, not function /usr/lib/python3.7/posixpath.py:80: TypeError