File: skip-database-tests

package info (click to toggle)
python-mbed-ls 1.6.2%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 576 kB
  • sloc: python: 2,784; makefile: 32; sh: 14
file content (53 lines) | stat: -rw-r--r-- 2,039 bytes parent folder | download | duplicates (2)
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
42
43
44
45
46
47
48
49
50
51
52
53
From: Nick Morrott <knowledgejunkie@gmail.com>
Date: Sun, 13 Nov 2022 10:36:04 +0200
Subject: Skip database tests during build tests

Forwarded: not-needed
Last-Update: 2018-12-27

Last-Update: 2018-12-27
---
 test/mbedls_toolsbase.py  | 3 +++
 test/platform_database.py | 1 +
 2 files changed, 4 insertions(+)

diff --git a/test/mbedls_toolsbase.py b/test/mbedls_toolsbase.py
index ec0ab6a..4509826 100644
--- a/test/mbedls_toolsbase.py
+++ b/test/mbedls_toolsbase.py
@@ -234,6 +234,7 @@ Remount count: 0
         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 @@ Remount count: 0
             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 @@ Remount count: 0
         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'),
diff --git a/test/platform_database.py b/test/platform_database.py
index b1a5334..5e1aa52 100644
--- a/test/platform_database.py
+++ b/test/platform_database.py
@@ -67,6 +67,7 @@ class EmptyPlatformDatabaseTests(unittest.TestCase):
         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
         """