erste Fassung der Erzeugung von Mubea als Test hinzugefügt
This commit is contained in:
@@ -157,3 +157,33 @@ def gefaellestrecke_dxf():
|
||||
if not os.path.exists(path):
|
||||
pytest.skip("gefaellestrecke_tests.dxf nicht vorhanden - TESTRUN in BricsCAD ausfuehren")
|
||||
return ezdxf.readfile(path)
|
||||
|
||||
|
||||
# --- Mubea Fixtures ---
|
||||
|
||||
@pytest.fixture
|
||||
def mubea_testdata():
|
||||
"""Laedt die Mubea-Testdefinitionen aus testdata/mubea.json (alle Eintraege)."""
|
||||
path = os.path.join(_testdata_dir(), "mubea.json")
|
||||
return _load_json(path)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mubea_results():
|
||||
"""Laedt die Mubea-Ergebnisse aus output/mubea_results.json."""
|
||||
path = os.path.join(_output_dir(), "mubea_results.json")
|
||||
if not os.path.exists(path):
|
||||
pytest.skip("mubea_results.json nicht vorhanden - TEST_MUBEA in BricsCAD ausfuehren")
|
||||
data = _load_json(path)
|
||||
if not data:
|
||||
pytest.skip("mubea_results.json ist leer")
|
||||
return data
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mubea_dxf():
|
||||
"""Laedt die erzeugte Mubea-DXF aus output/mubea_tests.dxf."""
|
||||
path = os.path.join(_output_dir(), "mubea_tests.dxf")
|
||||
if not os.path.exists(path):
|
||||
pytest.skip("mubea_tests.dxf nicht vorhanden - TESTRUN (save:dxf) in BricsCAD ausfuehren")
|
||||
return ezdxf.readfile(path)
|
||||
|
||||
Reference in New Issue
Block a user