Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidwhiteside committed Nov 30, 2016
1 parent 2a7b30e commit decd6b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/units/test_tracknodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def test_detect_resourcemanager_slurm_shortpath(self):
tn.detect_resourcemanager()
assert( tn.resourcemanager == "slurm" )

@mock.patch('tracknodes.tracknodes.TrackNodes.which', return_value="pbsnodes")
@mock.patch('tracknodes.tracknodes.TrackNodes.which', return_value="sinfo")
def test_run(self, mock_which):
out = StringIO()
orig_stdout = sys.stdout
sys.stdout = out

tn = TrackNodes(nodes_cmd="pbsnodes")

tn = TrackNodes(nodes_cmd="sinfo")
tn.resourcemanager="slurm"
tn.run()

sys.stdout = orig_stdout
Expand Down

0 comments on commit decd6b3

Please sign in to comment.