Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Feb 23 2022, 7:11 PM
Details
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f1bdf847710> def test_cli_collection_ok(requests_mock_datadir): client = PublicApiDepositClient( url="https://deposit.swh.test/1", auth=("test", "test") ) > collection_name = _collection(client) .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <swh.deposit.client.PublicApiDepositClient object at 0x7f1bdf88fe10> def _collection(client: PublicApiDepositClient) -> str: """Retrieve the client's collection """ # retrieve user's collection sd_content = client.service_document() if "error" in sd_content: msg = sd_content["error"] raise InputError(f"Service document retrieval: {msg}") > return sd_content.findtext( "app:workspace/app:collection/sword:name", namespaces=NAMESPACES ) E AttributeError: 'dict' object has no attribute 'findtext' .tox/py3/lib/python3.7/site-packages/swh/deposit/cli/client.py:164: AttributeError