[elbe-devel] [PATCH 19/19] elbepack: delete test_version.py

Eduard Krein eduard.krein at linutronix.de
Thu Apr 4 15:58:00 CEST 2024


Am Dienstag, dem 19.03.2024 um 08:47 +0100 schrieb Thomas Weißschuh:
> 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>

For the series:
Reviewed-by: Eduard Krein <eduard.krein 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)
> 

-- 
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/legal/data-protection.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,
HRB700 806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Tiffany Silva, Sean Fennelly, Jeffrey Schneiderman






More information about the elbe-devel mailing list