Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
add test for tuple issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Dec 10, 2015
1 parent 9b7fd3b commit ddee1a9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_resources_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ def test_launch_w_tags(self):
json.loads(t.requests[2].body)['job_tags'], 'a, b, c',
)

def test_launch_w_tuple_extra_vars(self):
"""Establish that if the click library gives a tuple, than the job
will run normally.
"""
with client.test_mode as t:
standard_registration(t)
result = self.res.launch(1, extra_vars=())
self.assertDictContainsSubset({'changed': True, 'id': 42}, result)

def test_basic_launch_monitor_option(self):
"""Establish that we are able to create a job that doesn't require
any invocation-time input, and that monitor is called if requested.
Expand Down

0 comments on commit ddee1a9

Please sign in to comment.