My climat station
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 14:27:02 by
1.7.2
Gleb Klochkov