Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A pytest plugin to help writing unit test for django-rq

Project description


A pytest plugin to help writing unit test for django-rq.

build Code style: black

This plugin provides a django_rq_worker fixture which has a work() method to run all enqueued jobs in current process.


def test_async_api(django_rq_worker):
    client = django.test.Client()

    # Call an async API
    response =
    assert response.status_code == 201  # Accepted

    # now let's run all enqueued jobs

    # assert the async jobs has taken place.
    assert ...

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-django-rq, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_django_rq-0.2.0-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-django-rq-0.2.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page