Commit Graph

27 Commits

Author SHA1 Message Date
Benjamin Root f68aeff481 Added integration test for the metadata persistence feature 2017-01-27 13:30:51 -05:00
Samuel Colvin bbf50f4893 use compat for PY2 test and add tests 2016-07-25 12:08:45 +01:00
Samuel Colvin 0e26db9e08 correct wording in docstring and tests 2016-06-19 12:46:23 +01:00
Samuel Colvin 2b544e5b17 add tests to HerokuWorker 2016-06-19 12:46:23 +01:00
Arnold Krille df22f127eb Test the worker in its own subprocess
- run with an empty queue
- schedule one job (which uses get_current_connection and get_current_job) and
run `rqworker`
- schedule a job that itself schedules `access_self` and run `rqworker`
- Make sure the job didn't fail by assuring the failed queue is still empty
  afterwards.
- Install this package locally when running in travis.
  This actually unifies the behaviour of tox and travis as tox also builds the
  package and then installs it into each test environment.
- fix flake8 (as run by tox)
2016-06-15 21:35:02 +02:00
Selwin Ong 3c3646cf91 Merge branch 'master' into exception_handling
Conflicts:
	tests/fixtures.py
2015-07-03 17:06:20 +07:00
Robert Brownstein 3d8faa0e5d Added proper conditional behavior to unicode fixture for python 3 2015-05-28 17:23:04 -04:00
Robert Brownstein 303f4ed47c Added test coverage for unicode keyword argument support in method signatures (#536) 2015-05-28 17:15:18 -04:00
Vincent Driessen df4d4c8d5d Make test cases more explicit 2015-04-12 11:15:55 +02:00
glaslos 3af0e95ce5 adding two tests to ensure ttl behaviour 2015-01-29 14:19:50 +01:00
Bradley Young 5caccaabfe Adding optional list handling to the exc_handler option in Worker.
Adding command line --exception_handler option (with multiple entries allowed) to `rq worker`
Added tests for command line options.
2014-11-12 09:04:40 -05:00
Vincent Driessen 4b7c59d68d Fix PEP8 complaints. 2014-09-08 20:29:24 +02:00
foxx 16ee71f26d Use class for test worker, and performs PID check in unit tests, #412 2014-09-08 11:37:14 +01:00
Vincent Driessen 79db282879 Support enqueueing callable classes.
Fixes #388.
2014-07-26 09:34:01 +02:00
Vincent Driessen 38ec259b6e Enable the most modern Python syntax. 2014-05-05 10:50:02 +02:00
Selwin Ong 4f918041e3 Rearranged how explicit kwargs are passed into queue.enqueue(). Fixes #322 2014-04-11 16:47:31 +07:00
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.
2013-04-19 21:18:25 +02:00
Vincent Driessen 372de4b45a Implement the get_current_job() function.
This fixes #125.
2012-09-02 22:38:46 +02:00
Selwin Ong a4f1de358f Raise a StopException when Control+C is pressed. 2012-07-26 09:36:50 +07:00
Vincent Driessen d697ddb93a Resolve connections early.
Fixes #101.
2012-07-24 12:37:59 +02:00
Vincent Driessen c7225ba257 Minor bug in test case. 2012-07-24 12:30:37 +02:00
Selwin Ong 8c3292d35b Make "queue" argument in job decorator required.
job decorator now uses Queue's "enqueue_call" method.
2012-07-24 16:03:49 +07:00
Selwin Ong bdc1af28d1 Added a job decorator. 2012-07-23 13:25:31 +07:00
Omar Khan 03bd49511d Allow instance methods to be enqueued
Only works for picklable instances
2012-07-17 11:48:41 +01:00
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.
2012-02-22 18:01:14 +01:00
Vincent Driessen 9ac9c23412 Flake8. 2012-02-22 17:39:14 +01:00
Vincent Driessen f07d28db86 Organize test fixtures into a separate file. 2012-02-15 21:55:06 +01:00