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
fd91a20a
Commit
fd91a20a
authored
Mar 14, 2026
by
Eric Duminil
Browse files
_var
parent
674a40af
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_cli.py
View file @
fd91a20a
...
@@ -90,12 +90,12 @@ def test_run_files_flag(mock_simstadt, run_cli, capsys, tmp_path):
...
@@ -90,12 +90,12 @@ def test_run_files_flag(mock_simstadt, run_cli, capsys, tmp_path):
assert
"Mean Uvalue"
in
out
assert
"Mean Uvalue"
in
out
def
broken_simstadt
(
workflow_path
:
Path
,
name
:
str
)
->
str
:
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
,
tmp_path
):
monkeypatch
.
setattr
(
"simstadt.runner.run_simstadt"
,
broken_simstadt
)
monkeypatch
.
setattr
(
"simstadt.runner.run_simstadt"
,
_
broken_simstadt
)
monkeypatch
.
setattr
(
monkeypatch
.
setattr
(
sys
,
sys
,
"argv"
,
"argv"
,
...
...
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