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")
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")
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")
def test_add_mask(self, capsys): actions.command("add-mask", "Mona The Octocat") assert self._stdout(capsys) == "::add-mask::Mona The Octocat"
def test_add_path(self, capsys): actions.command("add-path", "/path/to/dir") assert self._stdout(capsys) == "::add-path::/path/to/dir"
def test_set_output(self, capsys): actions.command("set-output", "strawberry", name="action_fruit") assert self._stdout( capsys) == "::set-output name=action_fruit::strawberry"
def test_set_env(self, capsys): actions.command("set-env", "yellow", name="action_state") assert self._stdout(capsys) == "::set-env name=action_state::yellow"
def test_resume_command(self, capsys): actions.command("pause-logging") assert self._stdout(capsys) == "::pause-logging::"
def test_stop_commands(self, capsys): actions.command("stop-commands", "pause-logging") assert self._stdout(capsys) == "::stop-commands::pause-logging"