Exemplo n.º 1
0
    def test_submit_single_task(self):

        s = Submitter()
        s.guess_virtualenv()
        print(self.dir)
        ttt = TestTask(self.dir)
        s.tasks = [partial(ttt, 'foo')]
        s.StoreClass = self.STORE
        s.submit()
        time.sleep(15)
        ttt.validate('foo')
Exemplo n.º 2
0
 def test_invalid(self):
     tt = TestTask(self.dir)
     tt('foo')
     with self.assertRaises(AssertionError):
         tt.validate('bar')
Exemplo n.º 3
0
 def test_no_file(self):
     tt = TestTask(self.dir)
     with self.assertRaises(AssertionError):
         tt.validate('bar')
Exemplo n.º 4
0
 def test_sanity(self):
     tt = TestTask(self.dir)
     tt('foo')
     tt.validate('foo')