qbatch icon indicating copy to clipboard operation
qbatch copied to clipboard

Investigate mock for better unit tests

Open gdevenyi opened this issue 8 years ago • 2 comments

http://slviki.com/index.php/2016/06/18/introduction-to-mocking-in-python/

gdevenyi avatar Jun 18 '16 16:06 gdevenyi

Related to #121

gdevenyi avatar Aug 11 '16 15:08 gdevenyi

Given @dcoynel's pain in getting slurm going (see #140), and given that our tests don't actually depend on any of the scheduling systems to be installed right now (since we never schedule any jobs in our tests), perhaps one concrete thing we can do is mock the scheduler system commands (see testpath, for instance).

pipitone avatar Jun 29 '17 13:06 pipitone