Package: python-mbed-ls / 1.6.2+dfsg-1

skip-database-tests Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: Skip database tests during build tests
Author: Nick Morrott <knowledgejunkie@gmail.com>
Forwarded: not-needed
Last-Update: 2018-12-27
---
--- a/test/mbedls_toolsbase.py
+++ b/test/mbedls_toolsbase.py
@@ -234,6 +234,7 @@
         table_str = self.base.list_manufacture_ids()
         self.assertTrue(isinstance(table_str, basestring))
 
+    @unittest.skip("skip database tests")
     def test_mock_manufacture_ids_default_multiple(self):
         # oper='+'
         for mid, platform_name in [('0341', 'TEST_PLATFORM_NAME_1'),
@@ -242,6 +243,7 @@
             self.base.mock_manufacture_id(mid, platform_name)
             self.assertEqual(platform_name, self.base.plat_db.get(mid))
 
+    @unittest.skip("skip database tests")
     def test_mock_manufacture_ids_minus(self):
         # oper='+'
         for mid, platform_name in [('0341', 'TEST_PLATFORM_NAME_1'),
@@ -256,6 +258,7 @@
         self.assertEqual(None, self.base.plat_db.get("0342"))
         self.assertEqual('TEST_PLATFORM_NAME_3', self.base.plat_db.get("0343"))
 
+    @unittest.skip("skip database tests")
     def test_mock_manufacture_ids_star(self):
         # oper='+'
         for mid, platform_name in [('0341', 'TEST_PLATFORM_NAME_1'),
--- a/test/platform_database.py
+++ b/test/platform_database.py
@@ -67,6 +67,7 @@
         self.pdb.add("1234", "MYTARGET")
         self.assertEqual(self.pdb.get("1234"), "MYTARGET")
 
+    @unittest.skip("skip database tests")
     def test_broken_database(self):
         """Verify that the platform database correctly reset's its database
         """