File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,14 @@ def test_set_output(tmpdir: Any) -> None:
257257 )
258258
259259
260+ def test_set_output_deprecation_warning (tmpdir : Any ) -> None :
261+ file = tmpdir .join ("output_file" )
262+
263+ with pytest .deprecated_call ():
264+ with mock .patch .dict (os .environ , {"GITHUB_OUTPUT" : file .strpath }):
265+ gha_utils .set_output ("test" , "test" , use_subprocess = True )
266+
267+
260268def test_save_state (tmpdir : Any ) -> None :
261269 file = tmpdir .join ("state_file" )
262270
@@ -272,6 +280,14 @@ def test_save_state(tmpdir: Any) -> None:
272280 )
273281
274282
283+ def test_save_state_deprecation_warning (tmpdir : Any ) -> None :
284+ file = tmpdir .join ("state_file" )
285+
286+ with pytest .deprecated_call ():
287+ with mock .patch .dict (os .environ , {"GITHUB_STATE" : file .strpath }):
288+ gha_utils .save_state ("test" , "test" , use_subprocess = True )
289+
290+
275291@mock .patch .dict (os .environ , {"STATE_test_state" : "test" , "abc" : "another test" })
276292def test_get_state () -> None :
277293 assert gha_utils .get_state ("test_state" ) == "test"
You can’t perform that action at this time.
0 commit comments