Commit Graph

17 Commits (3af0e95ce5a0314fa8d95b60785e6cf2979e9d6b)

Author SHA1 Message Date
glaslos 3af0e95ce5 adding two tests to ensure ttl behaviour
Vincent Driessen 4b7c59d68d Fix PEP8 complaints.
foxx 16ee71f26d Use class for test worker, and performs PID check in unit tests,
Vincent Driessen 79db282879 Support enqueueing callable classes.
Fixes .
Vincent Driessen 38ec259b6e Enable the most modern Python syntax.
Selwin Ong 4f918041e3 Rearranged how explicit kwargs are passed into queue.enqueue(). Fixes
Vincent Driessen a5dff6659c Replace the Calculator fixture by a Number fixture.
This makes the tests a little more realistic, since I want to add a test
for class methods.
Vincent Driessen 372de4b45a Implement the get_current_job() function.
This fixes .
Selwin Ong a4f1de358f Raise a StopException when Control+C is pressed.
Vincent Driessen d697ddb93a Resolve connections early.
Fixes .
Vincent Driessen c7225ba257 Minor bug in test case.
Selwin Ong 8c3292d35b Make "queue" argument in job decorator required.
job decorator now uses Queue's "enqueue_call" method.
Selwin Ong bdc1af28d1 Added a job decorator.
Omar Khan 03bd49511d Allow instance methods to be enqueued
Only works for picklable instances
Vincent Driessen e807748ee6 Test the timing out of jobs.
Really looking for a way to speed up this test.  It takes up a whole
second doing nothing now, really.
Vincent Driessen 9ac9c23412 Flake8.
Vincent Driessen f07d28db86 Organize test fixtures into a separate file.