mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
test: Add tests directory to migrate unit tests to project
This commit is contained in:
@@ -6,3 +6,4 @@ include MANIFEST.in
|
||||
include README.md
|
||||
include requirements.txt
|
||||
include setup.py
|
||||
recursive-include tests *
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Build dependencies
|
||||
pytest-cov
|
||||
setuptools
|
||||
sphinx
|
||||
wheel
|
||||
|
||||
14
tests/test_import.py
Normal file
14
tests/test_import.py
Normal 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)
|
||||
Reference in New Issue
Block a user