File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 " bdvp" ,
1616 " bigstitcher" ,
1717 " biop" ,
18+ " caplog" ,
1819 " clij" ,
1920 " Dscijava" ,
2021 " flatfield" ,
Original file line number Diff line number Diff line change @@ -86,10 +86,18 @@ def getInputs(self):
8686 return self .inputs
8787
8888
89+ def test_save_script_parameters_fail (caplog ):
90+ """Tests save_script_parameters with an invalid script_globals object."""
91+ caplog .clear ()
92+
93+ save_script_parameters (script_globals = None , destination = "" )
94+ assert "ScriptModule inspection failed" in caplog .messages [0 ]
95+
96+
8997# FIXME: probably better use monkeypatch instead of mocker for more flexibility
9098# in modifying the return value depending on the ScriptModule contents
9199def test_save_script_parameters (tmpdir , mocker ):
92- """Tests for imcflibs.imagej.misc. save_script_parameters."""
100+ """Tests save_script_parameters."""
93101 base = tmpdir .mkdir ("base" )
94102 m_is_password_style = mocker .patch ("imcflibs.imagej.misc._is_password_style" )
95103 m_is_password_style .return_value = False
You can’t perform that action at this time.
0 commit comments