Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Oct 12 2020, 5:28 PM
Details
sample_archive = {'data': b'PK\x03\x04\x14\x00\x00\x00\x00\x00x{LQ\xcba\xb4c\x14\x00\x00\x00\x14\x00\x00\x00\x05\x00\x00\x00file1some c...ytest-0/test_cli_single_minimal_deposi0/tmp96_4v84q', 'length': 128, 'md5sum': '82196f3c181c9982b032778670639f0d', ...} slug = '5b17ee74-c80b-4001-80bc-2d00b4dd130b' patched_tmp_path = <function patched_tmp_path at 0x7f107efdc158> requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f107ddb46d8> cli_runner = <click.testing.CliRunner object at 0x7f107ddb4898> def test_cli_single_minimal_deposit( sample_archive, slug, patched_tmp_path, requests_mock_datadir, cli_runner ): """ This ensure a single deposit upload through the cli is fine, cf. https://docs.softwareheritage.org/devel/swh-deposit/getting-started.html#single-deposit """ # noqa > metadata_path = os.path.join(patched_tmp_path, "metadata.xml") .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = <function patched_tmp_path at 0x7f107efdc158>, 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