Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scanner.tests.test_policy::test_directory_priority_policy
Failed

TEST RESULT

Run At
May 9 2022, 12:44 PM
Details
live_server = <[AttributeError("'LiveServer' object has no attribute 'url'") raised in repr()] LiveServer object at 0x7fcee6a6ada0> aiosession = <async_generator object aiosession at 0x7fcefc2a9048> event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False> source_tree_policy = Directory(id=fe8cd7076bef324eb8865f818ef08617879022ce, entries=[b'some-binary', b'foo', b'toexclude', b'bar']) tmp_requests = local('/tmp/pytest-of-jenkins/pytest-0/data0/requests.json') def test_directory_priority_policy( live_server, aiosession, event_loop, source_tree_policy, tmp_requests ): open(tmp_requests, "w").close() api_url = url_for("index", _external=True) nodes_data = MerkleNodeInfo() init_merkle_node_info(source_tree_policy, nodes_data, {"known"}) policy = DirectoryPriority(source_tree_policy, nodes_data) client = Client(api_url, aiosession) > event_loop.run_until_complete(policy.run(client)) .tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_policy.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/asyncio/base_events.py:584: in run_until_complete return future.result() .tox/py3/lib/python3.7/site-packages/swh/scanner/policy.py:187: in run dir_status = await client.known([dir_.swhid()]) .tox/py3/lib/python3.7/site-packages/swh/scanner/client.py:96: in known return await make_request(swhids) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ swhids = ['swh:1:dir:c3020f6bf135a38c6df3afeb5fb38232c5e07087'] async def make_request(swhids): swhids = [str(swhid) for swhid in swhids] > async with self.session.post(endpoint, json=swhids) as resp: E AttributeError: 'async_generator' object has no attribute 'post' .tox/py3/lib/python3.7/site-packages/swh/scanner/client.py:82: AttributeError