Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(85) | Call(0) | Derive(53) | Import(32)
src/q/l/qless-py-HEAD/test/test_worker.py qless-py(Download)
'''Test worker''' # Internal imports from common import TestQless
class TestWorker(TestQless): '''Test the worker''' def setUp(self): TestQless.setUp(self) self.worker = Worker(['foo'], self.client)
src/q/l/qless-py-HEAD/test/test_serial.py qless-py(Download)
'''Test the serial worker''' # Internal imports from common import TestQless
class TestWorker(TestQless): '''Test the worker''' def setUp(self): TestQless.setUp(self) self.queue = self.client.queues['foo']
src/q/l/qless-py-HEAD/test/test_queue.py qless-py(Download)
'''Basic tests about the Job class''' from common import TestQless class TestQueue(TestQless):
src/q/l/qless-py-HEAD/test/test_job.py qless-py(Download)
'''Basic tests about the Job class''' from common import TestQless from qless.job import Job, BaseJob
class TestJob(TestQless): '''Test the Job class''' def test_attributes(self): '''Has all the basic attributes we'd expect''' self.client.queues['foo'].put('Foo', {'whiz': 'bang'}, jid='jid',
class TestRecurring(TestQless): def test_attributes(self): '''We can access all the recurring attributes''' self.client.queues['foo'].recur('Foo', {'whiz': 'bang'}, 60, jid='jid', tags=['foo'], retries=3)
src/q/l/qless-py-HEAD/test/test_greenlet.py qless-py(Download)
'''Test the serial worker''' # Internal imports from common import TestQless
class TestWorker(TestQless): '''Test the worker''' def setUp(self): TestQless.setUp(self) self.worker = PatchedGeventWorker(
src/q/l/qless-py-HEAD/test/test_forking.py qless-py(Download)
'''Test the forking worker''' # Internal imports from common import TestQless
class TestWorker(TestQless): '''Test the worker''' def setUp(self): TestQless.setUp(self) self.worker = PatchedForkingWorker(
src/q/l/qless-py-HEAD/test/test_events.py qless-py(Download)
'''Tests about events''' from common import TestQless class TestEvents(TestQless):
src/q/l/qless-py-HEAD/test/test_config.py qless-py(Download)
'''Tests about the config class''' from common import TestQless class TestConfig(TestQless):
src/q/l/qless-py-HEAD/test/test_client.py qless-py(Download)
'''Basic tests about the client''' from common import TestQless class TestClient(TestQless):
class TestJobs(TestQless): '''Test the Jobs class''' def test_basic(self): '''Can give us access to jobs''' self.assertEqual(self.client.jobs['jid'], None)
class TestQueues(TestQless): '''Test the Queues class''' def test_basic(self): '''Gives us access to queues''' self.assertNotEqual(self.client.queues['foo'], None)
class TestWorkers(TestQless): '''Test the Workers class''' def test_individual(self): '''Gives us access to individual workers''' self.client.queues['foo'].put('Foo', {}, jid='jid')
src/q/l/qless-core-HEAD/test/test_worker.py qless-core(Download)
'''Tests about worker information''' from common import TestQless class TestWorker(TestQless):
1 | 2 | 3 | 4 Next