def test_a_CreateJob(self): from Ganga.GPI import jobs, Job, Executable, Local jobs.remove() j = Job() j.application = Executable() j.backend = Local()
def test_Savannah9289(self): from Ganga.GPI import Job, jobs for repeat in range(5): for start in range(1): j = Job() ids1 = jobs.ids() ids2 = sorted(jobs.ids()) self.assertEqual(ids1, ids2) jobs.remove()
def test_Savannah43249(self): from Ganga.Core.exceptions import GangaException from Ganga.GPI import Job, jobs Job() Job() Job() self.assertRaises(GangaException, jobs.remove, 10) self.assertRaises(TypeError, jobs.remove, x=True) jobs.remove(keep_going=True)
def test_Savannah13406(self): #from Ganga.GPI import config #config['Configuration']['autoGenerateJobWorkspace'] = True import os from Ganga.GPI import Job, jobs jobs.remove() j = Job() j.submit() # Needed in order to create the workspace self.assertTrue(os.path.exists(j.inputdir + '/../..')) jobs.remove() # Check is repository/Local or repository/Remote still exists self.assertTrue(os.path.exists(os.path.abspath(j.inputdir + '/../..')))