Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
BuildApiTests Class Reference
Public Member Functions | |
| def | setUp |
| def | tearDown |
| def | test_prepare_toolchain_app_config |
| def | test_prepare_toolchain_no_app_config |
| def | test_build_project_app_config |
| def | test_build_project_no_app_config |
| def | test_build_library_app_config |
| def | test_build_library_no_app_config |
Detailed Description
Test cases for Build Api
Definition at line 33 of file build_api_test.py.
Member Function Documentation
| def setUp | ( | self ) |
Called before each test case :return:
Definition at line 38 of file build_api_test.py.
| def tearDown | ( | self ) |
Called after each test case :return:
Definition at line 49 of file build_api_test.py.
| def test_build_library_app_config | ( | self, | |
| mock_prepare_toolchain, | |||
| mock_exists, | |||
| _, | |||
| __ | |||
| ) |
Test that build_library uses app_config correctly :param mock_prepare_toolchain: mock of function prepare_toolchain :param mock_exists: mock of function os.path.exists :param _: mock of function mkdir (not tested) :param __: mock of class Resources (not tested) :return:
Definition at line 184 of file build_api_test.py.
| def test_build_library_no_app_config | ( | self, | |
| mock_prepare_toolchain, | |||
| mock_exists, | |||
| _, | |||
| __ | |||
| ) |
Test that build_library correctly deals with no app_config :param mock_prepare_toolchain: mock of function prepare_toolchain :param mock_exists: mock of function os.path.exists :param _: mock of function mkdir (not tested) :param __: mock of class Resources (not tested) :return:
Definition at line 211 of file build_api_test.py.
| def test_build_project_app_config | ( | self, | |
| mock_prepare_toolchain, | |||
| mock_exists, | |||
| _, | |||
| __ | |||
| ) |
Test that build_project uses app_config correctly :param mock_prepare_toolchain: mock of function prepare_toolchain :param mock_exists: mock of function os.path.exists :param _: mock of function mkdir (not tested) :param __: mock of class Resources (not tested) :return:
Definition at line 124 of file build_api_test.py.
| def test_build_project_no_app_config | ( | self, | |
| mock_prepare_toolchain, | |||
| mock_exists, | |||
| _, | |||
| __ | |||
| ) |
Test that build_project correctly deals with no app_config :param mock_prepare_toolchain: mock of function prepare_toolchain :param mock_exists: mock of function os.path.exists :param _: mock of function mkdir (not tested) :param __: mock of class Resources (not tested) :return:
Definition at line 154 of file build_api_test.py.
| def test_prepare_toolchain_app_config | ( | self, | |
| mock_config_init | |||
| ) |
Test that prepare_toolchain uses app_config correctly :param mock_config_init: mock of Config __init__ :return:
Definition at line 83 of file build_api_test.py.
| def test_prepare_toolchain_no_app_config | ( | self, | |
| mock_config_init | |||
| ) |
Test that prepare_toolchain correctly deals with no app_config :param mock_config_init: mock of Config __init__ :return:
Definition at line 103 of file build_api_test.py.
Generated on Tue Aug 9 2022 00:37:37 by
1.7.2