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_version_valid |
def | test_interface_version_missing_interface_version |
def | test_version_none |
def | test_interface_version_missing_mount_point |
Detailed Description
Test cases for Detect Target functionality
Definition at line 74 of file detect_targets_test.py.
Member Function Documentation
def setUp | ( | self ) |
Called before each test case :return:
Definition at line 79 of file detect_targets_test.py.
def tearDown | ( | self ) |
Nothing to tear down. Called after each test case :return:
Definition at line 88 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 122 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 148 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 98 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 135 of file detect_targets_test.py.
def test_version_valid | ( | self, | |
mbed_lstools_mock | |||
) |
Test that checks function returns correctly when given a valid Version :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :return
Definition at line 110 of file detect_targets_test.py.
Generated on Thu Jul 14 2022 14:36:32 by
