Makes your Django tests simple and snappy
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbafa9e4badd6d8a2bcbfbacdcdbfd0bd6120b67d4f5c57db6ea5f226abe3f27
|
|
| MD5 |
c527d6f2277220702b2530bcca8ac733
|
|
| BLAKE2b-256 |
1716810b81efc16070014e14357202de8616c82405d43c66bf9dc5a4f3156082
|
Provenance
The following attestation bundles were made for django_nose_ng-1.4.3.tar.gz:
Publisher:
release.yml on kkszysiu/django-nose-ng
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_nose_ng-1.4.3.tar.gz -
Subject digest:
fbafa9e4badd6d8a2bcbfbacdcdbfd0bd6120b67d4f5c57db6ea5f226abe3f27 - Sigstore transparency entry: 771429204
- Sigstore integration time:
-
Permalink:
kkszysiu/django-nose-ng@14d099f08cc4dfc99f63d156f6a0ddcb5c7005de -
Branch / Tag:
refs/tags/v1.4.3 - Owner: https://github.com/kkszysiu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14d099f08cc4dfc99f63d156f6a0ddcb5c7005de -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df46db85276b3562d4d85c77b74051d96bc72522a13a4f79cb252b3286a90431
|
|
| MD5 |
d063234a2c19810eab4d2686e4fbf7da
|
|
| BLAKE2b-256 |
f62b262c0ab8919d59f7743693b23acd0f0a35a88b2f9efbe23f16273034e8a9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_nose_ng-1.4.3-py3-none-any.whl -
Subject digest:
df46db85276b3562d4d85c77b74051d96bc72522a13a4f79cb252b3286a90431 - Sigstore transparency entry: 771429248
- Sigstore integration time:
-
Permalink:
kkszysiu/django-nose-ng@14d099f08cc4dfc99f63d156f6a0ddcb5c7005de -
Branch / Tag:
refs/tags/v1.4.3 - Owner: https://github.com/kkszysiu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14d099f08cc4dfc99f63d156f6a0ddcb5c7005de -
Trigger Event:
push
-
Statement type: