How to test Python code for job scheduler?

Viewed 297

I'd like to write some tests for my Python code that manages several supercomputer job schedulers (like Slurm, PBS, Torque) and I don't want my tests to be run on any cluster with an actual job scheduler. Is there some Python library with mock objects for job schedulers?

For example, I want to test a method that views information about pending or running jobs, e.g. using squeue for Slurm or qstat for PBS.

0 Answers
Related