[elbe-devel] [PATCH 19/19] elbepack: delete test_version.py
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Mar 19 08:47:48 CET 2024
This is only an example.
While this test also works under pytest it is not the best style for it.
We have enough real tests to use as example.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/tests/test_version.py | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/elbepack/tests/test_version.py b/elbepack/tests/test_version.py
deleted file mode 100644
index 583b59c04e16..000000000000
--- a/elbepack/tests/test_version.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# SPDX-License-Identifier: GPL-3.0-or-later
-# SPDX-FileCopyrightText: 2020 Linutronix GmbH
-
-import unittest
-
-from elbepack.version import elbe_version
-
-
-# Since this is just an example on how to make tests, we skip them
-class TestElbepackVersion(unittest.TestCase):
-
- # This is a read-only state that is the same for every tests
- expected_version = '14.9.3'
-
- def setUp(self):
- # This is a mutable state that is different for every tests
- self.my_list = []
-
- def tearDown(self):
- # You might want to cleanup your mutable states here
- pass
-
- def test_version(self):
- self.my_list.append(1)
- self.assertEqual(elbe_version, self.expected_version)
--
2.44.0
More information about the elbe-devel
mailing list