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 26 of file build_api_test.py.
Member Function Documentation
def setUp | ( | self ) |
Called before each test case :return:
Definition at line 31 of file build_api_test.py.
def tearDown | ( | self ) |
Called after each test case :return:
Definition at line 42 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 140 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 166 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 86 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 113 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 51 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 68 of file build_api_test.py.
Generated on Tue Jul 12 2022 13:06:13 by
