Tests überarbeitet, Mocks und coverage eingefügt

This commit is contained in:
2025-12-17 17:45:18 +01:00
parent 2d67ce8adc
commit f64d56d4bc
17 changed files with 562 additions and 201 deletions

View File

@@ -1,10 +1,14 @@
#test_stilpruefer.py
import unittest
import tempfile
import os
from stilpruefer import Stilpruefer
from pruef_ergebnis import PruefErgebnis
import sys
# Plugin-Root ermitteln (ein Verzeichnis über "test")
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, ROOT)
from modules.stilpruefer import Stilpruefer
from modules.pruef_ergebnis import PruefErgebnis
class TestStilpruefer(unittest.TestCase):
def setUp(self):
self.pruefer = Stilpruefer()