django-runtests
Eases the writing of a runtests.py script for pluggable django application.
Such scripts usually provide a runtests() method that handle the test running behaviour.
Installation
Globally:
$ pip install django-runtests
From the package’s setup.py file (using Distribute):
setup( test_requires=[ 'django-runtests', ], test_suite='runtests.runtests', )
Defining the test setup
In your runtests.py file, add the following code:
from django_runtests import RunTests
def runtests():
return RunTests.runtests()
if __name__ == '__main__':
RunTests.main()
Tweaking the test setup
If you need to tweak some parts (updating configuration, adding options, …), you simply have to extend the RunTests command class:
import django_runtests
class RunTests(django_runtests.RunTests):
def should_test_app(self, app):
"""Test only applications listed in 'PACKAGE_APPS' setting."""
from django.conf import settings
return app in settings.PACKAGE_APPS
Metadata
Release files for django_runtests 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_runtests-0.4.0.tar.gz | 8.2 kB | Without provenance | Details for django_runtests-0.4.0.tar.gz |
Release files / django_runtests-0.4.0.tar.gz
| Download URL | django_runtests-0.4.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92ad810e3f1c382c79895230dc8ef54a01243750f9abeb62586fe29dd051a362
|
|
BLAKE2b-256 checksum How to use checksums |
43a48ae6b609e5a58f707ccec7869c9c8f42eb91d4f7fd3fb3fc8406b276e696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django_runtests 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.