Neue Testklassen für den Förderer gebaut: Status, Mathematik, ExportCSV und ExportSivas. Lisp/export.lsp wurde um VF_1, VF_2 Blöcke erweitert, um ein csv zu erhalten. Export_sivas und export_csv entsprechend um die nötigen Daten ergänzt
This commit is contained in:
@@ -36,6 +36,28 @@ def _load_json(path):
|
||||
return json.load(f)
|
||||
|
||||
|
||||
# --- Foerderer Fixtures ---
|
||||
|
||||
@pytest.fixture
|
||||
def foerderer_testdata():
|
||||
"""Laedt die Foerderer-Testdefinitionen aus testdata/foerderer_tests.json."""
|
||||
path = os.path.join(_testdata_dir(), "foerderer_tests.json")
|
||||
data = _load_json(path)
|
||||
return [t for t in data if "test_id" in t]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def foerderer_results():
|
||||
"""Laedt die Foerderer-Ergebnisse aus output/foerderer_results.json."""
|
||||
path = os.path.join(_output_dir(), "foerderer_results.json")
|
||||
if not os.path.exists(path):
|
||||
pytest.skip("foerderer_results.json nicht vorhanden - TEST_FOERDERER in BricsCAD ausfuehren")
|
||||
data = _load_json(path)
|
||||
if not data:
|
||||
pytest.skip("foerderer_results.json ist leer")
|
||||
return data
|
||||
|
||||
|
||||
# --- Omniflo Fixtures ---
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user