Skip to content

Commit 755c9cd

Browse files
committed
Force tests to mock
1 parent 486f00e commit 755c9cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/mbed-ls/test/mbedls_toolsbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class BasicTestCase(unittest.TestCase):
4343
"""
4444

4545
def setUp(self):
46-
self.base = DummyLsTools()
46+
self.base = DummyLsTools(force_mock=True)
4747

4848
def tearDown(self):
4949
pass

test/detect/mbedls_toolsbase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class BasicTestCase(unittest.TestCase):
4141
"""
4242

4343
def setUp(self):
44-
self.base = DummyLsTools()
44+
self.base = DummyLsTools(force_mock=True)
4545

4646
def tearDown(self):
4747
pass
@@ -264,6 +264,7 @@ def test_mock_manufacture_ids_star(self):
264264
self.assertEqual(None, self.base.plat_db.get("0342"))
265265
self.assertEqual(None, self.base.plat_db.get("0343"))
266266

267+
267268
def test_update_device_from_fs_mid_unmount(self):
268269
dummy_mount = 'dummy_mount'
269270
device = {

0 commit comments

Comments
 (0)