Skip to content

Commit

Permalink
Increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anayden committed Apr 12, 2019
1 parent 2388473 commit 19d31a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/e2e/test_e2e_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,13 @@ def test_port_forward_no_job(helper, nginx_job):
assert cm.value.code == -1


@pytest.mark.e2e
def test_port_forward_invalid_port(helper, nginx_job):
with pytest.raises(SystemExit) as cm:
helper.run_cli(["port-forward", "--no-key-check", nginx_job, "1:1"])
assert cm.value.code == -1


@pytest.mark.e2e
def test_exec_no_job(helper, nginx_job):
job_name = f"non-existing-job-{uuid4()}"
Expand Down

0 comments on commit 19d31a4

Please sign in to comment.