Fixed some bugs

This commit is contained in:
2026-07-24 16:46:08 +02:00
parent 46b8dd8263
commit 0be89456f6
4 changed files with 69 additions and 4 deletions

View File

@@ -45,7 +45,9 @@ def _fake_omc(
return ProcessResult(
tuple(command),
0,
'"Check of Example completed successfully."\n',
'"Check of Example completed successfully.\n'
'Class Example has 1 equation(s) and 1 variable(s)."\n'
'""\n',
"",
)
@@ -114,6 +116,11 @@ def test_checks_existing_modelica_source(tmp_path: Path) -> None:
result = asyncio.run(check())
assert result.successful
assert result.output == [
"Check of Example completed successfully.",
"Class Example has 1 equation(s) and 1 variable(s).",
"",
]
script = (tmp_path / "model-command.mos").read_text(encoding="utf-8")
assert "checkModel(Example);" in script