Closed grigi closed 1 year ago
Re the rest failures:
The tests.test_queue.TestQueue.test_dequeue_fifo
test is flaky for me locally as well, in fact it has been the whole time I knew this project.
I know this one will ALWAYS fail if upgrading redis-py to 5.0.0. I'm pretty certain it will pass on a retry.
Converted back to draft as I'm cleaning this up. Please don't merge as is.
closing due to inactivity, feel free to reopen when you have time to work on it
This PR contains a simple test double for testing your app that uses SAQ a bit easier. This doesn't require a redis server running, or using a fake redis server to test. It's really only aimed at the more common use cases
Done:
saq/queue.py
andsaq/worker.py
to ensure that the provided test doubles use much more of the actual code.saq/testing.py
To use you could do, e.g.:
Or more typically:
If you need to test something that uses
queue.apply()
orqueue.map()
you can pass in the worker settings: