Skip to content

Commit

Permalink
Reinstate mistakenly deleted test (#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndokos committed Apr 19, 2023
1 parent 473463f commit 5fa129e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/pbench/test/unit/agent/task/test_results_push.py
Expand Up @@ -147,6 +147,30 @@ def test_multiple_meta_args_single_option():
assert result.exit_code == 0, result.stderr
assert result.stdout == ""

@staticmethod
@responses.activate
def test_multiple_meta_args():
"""Test normal operation when all arguments and options are specified"""

TestResultsPush.add_http_mock_response()
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
main,
args=[
TestResultsPush.TOKN_SWITCH,
TestResultsPush.TOKN_TEXT,
TestResultsPush.ACCESS_SWITCH,
TestResultsPush.ACCESS_TEXT,
TestResultsPush.META_SWITCH,
TestResultsPush.META_TEXT_TEST,
TestResultsPush.META_SWITCH,
TestResultsPush.META_TEXT_FOO,
tarball,
],
)
assert result.exit_code == 0, result.stderr
assert result.stderr == ""

@staticmethod
@responses.activate
def test_token_omitted():
Expand Down

0 comments on commit 5fa129e

Please sign in to comment.