Skip to content

Commit a631e52

Browse files
committed
[test_ModelSystemCmd/ModelExecutionCmd] fix test due to changes
1 parent 28ac83c commit a631e52

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

tests/test_ModelExecutionCmd.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ def mscmd_firstorder(model_firstorder):
3838
def test_simflags(mscmd_firstorder):
3939
mscmd = mscmd_firstorder
4040

41-
mscmd.args_set({
41+
mscmd.args_set(args={
42+
"override": {
43+
'b': 2,
44+
'a': 4,
45+
},
46+
"noRestart": None,
4247
"noEventEmit": None,
43-
"override": {'b': 2}
4448
})
45-
with pytest.deprecated_call():
46-
mscmd.args_set(args=mscmd.parse_simflags(simflags="-noEventEmit -noRestart -override=a=1,x=3"))
4749

4850
assert mscmd.get_cmd_args() == [
4951
'-noEventEmit',
5052
'-noRestart',
51-
'-override=a=1,b=2,x=3',
53+
'-override=a=4,b=2',
5254
]
5355

5456
mscmd.args_set({
@@ -58,5 +60,5 @@ def test_simflags(mscmd_firstorder):
5860
assert mscmd.get_cmd_args() == [
5961
'-noEventEmit',
6062
'-noRestart',
61-
'-override=a=1,x=3',
63+
'-override=a=4',
6264
]

0 commit comments

Comments
 (0)