test: Add tests directory to migrate unit tests to project

This commit is contained in:
2023-10-27 15:28:53 +02:00
parent ab2703a4d3
commit 653f90ab90
3 changed files with 16 additions and 0 deletions

View File

@@ -6,3 +6,4 @@ include MANIFEST.in
include README.md
include requirements.txt
include setup.py
recursive-include tests *

View File

@@ -1,4 +1,5 @@
# Build dependencies
pytest-cov
setuptools
sphinx
wheel

14
tests/test_import.py Normal file
View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""Test module import."""
# SPDX-FileCopyrightText: 2023 Sven Sager
# SPDX-License-Identifier: GPL-2.0-or-later
import unittest
class ModuleImport(unittest.TestCase):
def test_import(self):
"""Test the import of the module."""
import revpimodio2
self.assertEqual(type(revpimodio2.__version__), str)