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.
This commit is contained in:
1 parent
2b36297afb
commit
8124a687f0
1 file changed
+14
@@ -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)
|
||||||
Reference in new issue
Block a user