Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
2e838b58
Commit
2e838b58
authored
Mar 14, 2026
by
Eric Duminil
Browse files
Shorter code
parent
fd91a20a
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_cli.py
View file @
2e838b58
...
@@ -94,20 +94,9 @@ def _broken_simstadt(_workflow_path: Path, _name: str) -> str:
...
@@ -94,20 +94,9 @@ def _broken_simstadt(_workflow_path: Path, _name: str) -> str:
raise
ValueError
(
"BOOM!"
)
raise
ValueError
(
"BOOM!"
)
def
test_run_error_on_stderr
(
monkeypatch
,
capsys
,
tmp_path
):
def
test_run_error_on_stderr
(
monkeypatch
,
capsys
):
monkeypatch
.
setattr
(
"simstadt.runner.run_simstadt"
,
_broken_simstadt
)
monkeypatch
.
setattr
(
"simstadt.runner.run_simstadt"
,
_broken_simstadt
)
monkeypatch
.
setattr
(
monkeypatch
.
setattr
(
sys
,
"argv"
,
[
"simstadt"
,
str
(
HEAT_TEMPLATE
),
str
(
CITYGML
)])
sys
,
"argv"
,
[
"simstadt"
,
str
(
HEAT_TEMPLATE
),
str
(
CITYGML
),
"-p"
,
str
(
tmp_path
/
"Test.proj"
),
],
)
(
tmp_path
/
"Test.proj"
).
mkdir
()
with
pytest
.
raises
(
SystemExit
):
with
pytest
.
raises
(
SystemExit
):
app
()
app
()
out
,
err
=
capsys
.
readouterr
()
out
,
err
=
capsys
.
readouterr
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment