Skip to main content

Makes your Django tests simple and snappy

Project description

The PyPI package GitHub Actions Coverage

django-nose-ng provides all the goodness of nose-ng in your Django tests, like:

  • Testing just your apps by default, not all the standard ones that happen to be in INSTALLED_APPS

  • Running the tests in one or more specific modules (or apps, or classes, or folders, or just running a specific test)

  • Obviating the need to import all your tests into tests/__init__.py. This not only saves busy-work but also eliminates the possibility of accidentally shadowing test classes.

  • Taking advantage of all the useful nose plugins

It also provides:

  • Fixture bundling, an optional feature which speeds up your fixture-based tests by a factor of 4

  • Reuse of previously created test DBs, cutting 10 seconds off startup time

  • Hygienic TransactionTestCases, which can save you a DB flush per test

  • Support for various databases. Tested with MySQL, PostgreSQL, and SQLite. Others should work as well.

django-nose-ng requires nose-ng 1.4.3 or later. It supports:

  • Django 4.2 (LTS) with Python 3.11 or 3.12

  • Django 5.0 with Python 3.11, 3.12, or 3.13

  • Django 5.1 with Python 3.11, 3.12, 3.13, or 3.14

Note to users

This is a fork of the original django-nose project, updated to work with modern Python (3.11+) and Django (4.2+) versions. It uses nose-ng instead of the unmaintained nose package.

Installation

You can get django-nose-ng from PyPI with… :

$ pip install django-nose-ng

Or using uv:

$ uv add django-nose-ng

The development version can be installed with… :

$ pip install -e git+https://github.com/kkszysiu/django-nose-ng.git#egg=django-nose-ng

Since django-nose-ng extends Django’s built-in test command, you should add it to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = [
    ...
    'django_nose',
    ...
]

Then set TEST_RUNNER in settings.py:

TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

Development

Code:

https://github.com/kkszysiu/django-nose-ng

Issues:

https://github.com/kkszysiu/django-nose-ng/issues?state=open

Project details


Download files

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

Source Distribution

django_nose_ng-1.4.3.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_nose_ng-1.4.3-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file django_nose_ng-1.4.3.tar.gz.

File metadata

  • Download URL: django_nose_ng-1.4.3.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_nose_ng-1.4.3.tar.gz
Algorithm Hash digest
SHA256 fbafa9e4badd6d8a2bcbfbacdcdbfd0bd6120b67d4f5c57db6ea5f226abe3f27
MD5 c527d6f2277220702b2530bcca8ac733
BLAKE2b-256 1716810b81efc16070014e14357202de8616c82405d43c66bf9dc5a4f3156082

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_nose_ng-1.4.3.tar.gz:

Publisher: release.yml on kkszysiu/django-nose-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_nose_ng-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: django_nose_ng-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_nose_ng-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df46db85276b3562d4d85c77b74051d96bc72522a13a4f79cb252b3286a90431
MD5 d063234a2c19810eab4d2686e4fbf7da
BLAKE2b-256 f62b262c0ab8919d59f7743693b23acd0f0a35a88b2f9efbe23f16273034e8a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_nose_ng-1.4.3-py3-none-any.whl:

Publisher: release.yml on kkszysiu/django-nose-ng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page