Skip to content

Commit

Permalink
adjust unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumChemist authored and gpetretto committed Jan 17, 2025
1 parent 3bae2f4 commit 47377ea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/io/test_sge.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ def test_parse_job_output(self, sge_io, in_out_ref, test_utils):
assert job == job_ref

def test_get_job_cmd(self, sge_io):
cmd = sge_io._get_job_cmd(3)
assert cmd == "qstat -j -xml 3"
cmd = sge_io._get_job_cmd("56")
assert cmd == "qstat -j -xml 56"
with pytest.raises(
NotImplementedError, match=r"Querying by job IDs is not supported for SGE."
):
sge_io._get_job_cmd(3)
with pytest.raises(
NotImplementedError, match=r"Querying by job IDs is not supported for SGE."
):
sge_io._get_job_cmd("56")

def test_get_jobs_list_cmd(self, sge_io):
with pytest.raises(
Expand Down

0 comments on commit 47377ea

Please sign in to comment.