Minor copy edits, added comment

pull/5077/head
David Walters 2017-09-29 10:12:02 +01:00
parent a047f6276d
commit bb79f6991b
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,9 @@ from tools.detect_targets import get_interface_version
class MbedLsToolsMock(): class MbedLsToolsMock():
"""
Mock of mbedls tools
"""
def __init__(self, type): def __init__(self, type):
self.interface_test_type = type self.interface_test_type = type
@ -144,11 +147,12 @@ class DetectTargetsTest(unittest.TestCase):
@patch("mbed_lstools.create", return_value=MbedLsToolsMock('details_invalid_none')) @patch("mbed_lstools.create", return_value=MbedLsToolsMock('details_invalid_none'))
def test_interface_version_missing_mount_point(self, mbed_lstools_mock): def test_interface_version_missing_mount_point(self, mbed_lstools_mock):
""" """
Test that checks function returns correctly when no moint point is supplied. Test that checks function returns correctly when no mount point is supplied.
:param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock :param mbed_lstools_mock: Mocks Mbed LS tools with MbedLsToolsMock
:return :return
""" """
interface_version = get_interface_version(self.missing_mount_point) interface_version = get_interface_version(self.missing_mount_point)
assert interface_version == 'unknown' assert interface_version == 'unknown'