Skip to content

Commit e1b7040

Browse files
committed
??? cleanup TODOs
1 parent f2fcb8f commit e1b7040

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

tests/test_FMIExport.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
def test_CauerLowPassAnalog():
88
mod = OMPython.ModelicaSystem(modelName="Modelica.Electrical.Analog.Examples.CauerLowPassAnalog",
99
lmodel=["Modelica"])
10-
# TODO [OMCPath]: need to work using OMCPath
11-
tmp = pathlib.Path(mod.getWorkDirectory())
10+
tmp = mod.getWorkDirectory()
1211
try:
1312
fmu = mod.convertMo2Fmu(fileNamePrefix="CauerLowPassAnalog")
1413
assert os.path.exists(fmu)
@@ -18,8 +17,7 @@ def test_CauerLowPassAnalog():
1817

1918
def test_DrumBoiler():
2019
mod = OMPython.ModelicaSystem(modelName="Modelica.Fluid.Examples.DrumBoiler.DrumBoiler", lmodel=["Modelica"])
21-
# TODO [OMCPath]: need to work using OMCPath
22-
tmp = pathlib.Path(mod.getWorkDirectory())
20+
tmp = mod.getWorkDirectory()
2321
try:
2422
fmu = mod.convertMo2Fmu(fileNamePrefix="DrumBoiler")
2523
assert os.path.exists(fmu)

tests/test_ModelicaSystem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
121121
tmpdir = tmp_path / "tmpdir1"
122122
tmpdir.mkdir()
123123
m = OMPython.ModelicaSystem(filePath, "M", customBuildDirectory=tmpdir)
124-
# TODO [OMCPath]: need to work using OMCPath
125124
assert pathlib.Path(m.getWorkDirectory()).resolve() == tmpdir.resolve()
126125
result_file = tmpdir / "a.mat"
127126
assert not result_file.exists()

0 commit comments

Comments
 (0)