From 8124a687f0c6f1878c590870d71f9e230c79c289 Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Mon, 2 Oct 2023 16:10:42 +0200 Subject: [PATCH] test: Add tests directory with a dummy test For local and automated testing of the source code, the testing folder is added. This includes all the tests that the module has to go through. The project also uses pytest-cov, which can also create coverage reports. --- tests/test_import.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_import.py diff --git a/tests/test_import.py b/tests/test_import.py new file mode 100644 index 0000000..11a766d --- /dev/null +++ b/tests/test_import.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: 2025 KUNBUS GmbH +# SPDX-License-Identifier: GPL-2.0-or-later +"""Test module import.""" + +import unittest + + +class ModuleImport(unittest.TestCase): + def test_import(self): + """Test the import of the module.""" + import revpi_middleware + + self.assertEqual(type(revpi_middleware.__version__), str)