Exemple #1
0
 def test_debug(self, capsys):
     actions.command("debug",
                     "Entered octocatAddition method",
                     file="app.js",
                     line="1")
     assert (self._stdout(capsys) ==
             "::debug file=app.js,line=1::Entered octocatAddition method")
Exemple #2
0
 def test_error(self, capsys):
     actions.command("error",
                     "Something went wrong",
                     file="app.js",
                     line="10",
                     col="15")
     assert (self._stdout(capsys) ==
             "::error file=app.js,line=10,col=15::Something went wrong")
Exemple #3
0
 def test_warning(self, capsys):
     actions.command("warning",
                     "Missing semicolon",
                     file="app.js",
                     line="1",
                     col="5")
     assert (self._stdout(capsys) ==
             "::warning file=app.js,line=1,col=5::Missing semicolon")
Exemple #4
0
 def test_add_mask(self, capsys):
     actions.command("add-mask", "Mona The Octocat")
     assert self._stdout(capsys) == "::add-mask::Mona The Octocat"
Exemple #5
0
 def test_add_path(self, capsys):
     actions.command("add-path", "/path/to/dir")
     assert self._stdout(capsys) == "::add-path::/path/to/dir"
Exemple #6
0
 def test_set_output(self, capsys):
     actions.command("set-output", "strawberry", name="action_fruit")
     assert self._stdout(
         capsys) == "::set-output name=action_fruit::strawberry"
Exemple #7
0
 def test_set_env(self, capsys):
     actions.command("set-env", "yellow", name="action_state")
     assert self._stdout(capsys) == "::set-env name=action_state::yellow"
Exemple #8
0
 def test_resume_command(self, capsys):
     actions.command("pause-logging")
     assert self._stdout(capsys) == "::pause-logging::"
Exemple #9
0
 def test_stop_commands(self, capsys):
     actions.command("stop-commands", "pause-logging")
     assert self._stdout(capsys) == "::stop-commands::pause-logging"