Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Sep 9 2020, 8:00 PM
Details
live_server = <LiveServer listening at http://localhost:6600> event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False> test_sample_folder = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_scanner_result0/sample-folder') def test_scanner_result(live_server, event_loop, test_sample_folder): api_url = live_server.url() + "/" source_tree = Tree(test_sample_folder) > event_loop.run_until_complete(run(test_sample_folder, api_url, source_tree, set())) .tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_scanner.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/asyncio/base_events.py:584: in run_until_complete return future.result() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ config = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_scanner_result0/sample-folder') root = 'http://localhost:6600/' source_tree = <swh.scanner.model.Tree object at 0x7f93a135e198> exclude_patterns = set() async def run( config: Dict[str, Any], root: Path, source_tree: Tree, exclude_patterns: Set[Any], ) -> None: """Start scanning from the given root. It fills the source tree with the path discovered. Args: root: the root path to scan api_url: url for the API request """ > api_url = config["web-client"]["api-url"] E TypeError: 'PosixPath' object is not subscriptable .tox/py3/lib/python3.7/site-packages/swh/scanner/scanner.py:165: TypeError