Coverage for tests / eclipse / care / utils / test_eclipse.py: 100%
12 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-24 09:38 +0100
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-24 09:38 +0100
1# Copyright (c) 2025 The Eclipse Foundation
2#
3# This program and the accompanying materials are made available under the
4# terms of the Eclipse Public License 2.0 which is available at
5# http://www.eclipse.org/legal/epl-2.0.
6#
7# SPDX-License-Identifier: EPL-2.0
9import os
10from pprint import pprint
12from care.utils.eclipse import Eclipse
15def test_get_project_api():
16 e = Eclipse()
17 project_api = e.get_project_api(project_id='technology.dash')
18 assert project_api['project_id'] == 'technology.dash', "Project API contains the ID of the project."
19 assert project_api['name'] == 'Eclipse Dash', "Project API contains the name of the project."
21def test_get_project_api_nok():
22 e = Eclipse()
23 project_api = e.get_project_api(project_id='exists.not')
24 assert project_api is None, "Non-existent project returns None."