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.
Dependents: mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more
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 28 of file build_api_test.py.
Member Function Documentation
| def setUp | ( | self ) | 
Called before each test case :return:
Definition at line 33 of file build_api_test.py.
| def tearDown | ( | self ) | 
Called after each test case :return:
Definition at line 44 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 function scan_resources (not tested) :return:
Definition at line 179 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 function scan_resources (not tested) :return:
Definition at line 205 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 function scan_resources (not tested) :return:
Definition at line 123 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 function scan_resources (not tested) :return:
Definition at line 151 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 76 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 99 of file build_api_test.py.
Generated on Tue Jul 12 2022 11:02:42 by
 1.7.2
 1.7.2