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.
DetectTargetsTest Class Reference
Public Member Functions | |
def | setUp |
def | tearDown |
def | test_interface_version_valid |
def | test_interface_version_missing_interface_version |
def | test_version_none |
def | test_interface_version_wrong_mount_point |
def | test_interface_version_missing_mount_point |
Detailed Description
Test cases for Detect Target functionality
Definition at line 92 of file detect_targets_test.py.
Member Function Documentation
def setUp | ( | self ) |
Called before each test case :return:
Definition at line 97 of file detect_targets_test.py.
def tearDown | ( | self ) |
Nothing to tear down. Called after each test case :return:
Definition at line 107 of file detect_targets_test.py.
def test_interface_version_missing_interface_version | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when DETAILS.txt is present but an interface version is not listed. :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 129 of file detect_targets_test.py.
def test_interface_version_missing_mount_point | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when no mount point is supplied. :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 167 of file detect_targets_test.py.
def test_interface_version_valid | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when given a valid Interface Version :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 117 of file detect_targets_test.py.
def test_interface_version_wrong_mount_point | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when there is no board attached to supplied mount point. :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 155 of file detect_targets_test.py.
def test_version_none | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when a valid mount point is supplied but DETAILS.txt is not present. :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 142 of file detect_targets_test.py.
Generated on Tue Jul 12 2022 12:47:29 by
