Fixed some bugs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user