django-basetestcase
BaseTestCase is a collection of cheater methods for the Django TestCase. They are extensions of the Django TestCase. These came about as a result of learning and using TDD.
There are four different classes:
- ModelTestCase
- FormTestCase
- ViewTestCase
- FunctionalTestCase
- For use with Selenium.
- Origins and some methods from "Obey The Testing Goat".
Quickstart
To install:
pip install django-basetestcase
To use in a test:
from basetestcase import ModelTestCase
Please check out the source code for details. Documentation will be coming bit by bit. Any suggestions or issues, please let me know.
Compatibility
This was built using Python 3.7 and Django 2.1.7. Anything prior to that has no guarantees.
What's new?
FormTestCase Now has a formset_error_test.
FunctionalTestCase now accepts xpath.
Metadata
Release files for django-basetestcase 1.1
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 | |
|---|---|---|---|---|
| django-basetestcase-1.1.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_basetestcase-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / django-basetestcase-1.1.tar.gz
| Download URL | django-basetestcase-1.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
627fbb1fa291ef1b8460871600c6662449c00dc88d97fc8af0c3b845b361654e
|
|
BLAKE2b-256 checksum How to use checksums |
f21a960c4c1b5717a102cbae80cf3089fd21de58956361bc6a4130602d7c1c0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / django_basetestcase-1.1-py3-none-any.whl
| Download URL | django_basetestcase-1.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c7a429f2289ff6dbf8c0a0f0f779286253ca1efb149d935f565e7b87e848c69
|
|
BLAKE2b-256 checksum How to use checksums |
b4245ee76962390953fd9f10bd52ec4ee165ab3f1f55bf50ad2554da605ebf01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for django-basetestcase 1.1
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.