CoBrALab / qbatch

The Unlicense
28 stars 13 forks source link

Investigate mock for better unit tests #114

Open gdevenyi opened 8 years ago

gdevenyi commented 8 years ago

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

gdevenyi commented 8 years ago

Related to #121

pipitone commented 7 years ago

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).