Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Carmet <[email protected]>
  • Loading branch information
Abubakarr99 and tcarmet authored Aug 9, 2023
1 parent b386088 commit b57ce53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ def redis():
Migrator().run()
yield redis_connection
# Clean up if needed

from rq import SimpleWorker, Queue

@fixture(scope="session", autouse=True)
def worker(queue):
worker = SimpleWorker([queue], connection=queue.connection)
worker.work(burst=True)
return worker


@fixture(scope="session")
Expand Down

0 comments on commit b57ce53

Please sign in to comment.