Skip to main content

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:

  1. ModelTestCase
  2. FormTestCase
  3. ViewTestCase
  4. 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.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-basetestcase 1.1.8
File Size Uploaded Provenance Actions
django-basetestcase-1.1.8.tar.gz 7.0 kB Without provenance Details for django-basetestcase-1.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-basetestcase 1.1.8
File Interpreter ABI Platform Actions
django_basetestcase-1.1.8-py3-none-any.whl Python 3 none any Details for django_basetestcase-1.1.8-py3-none-any.whl

Total release size: 16.4 kB

Release files / django-basetestcase-1.1.8.tar.gz

Download URL django-basetestcase-1.1.8.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a44a7d77e0420c1b65f811c233869bcc90dc7e525cd3c0b0ec050939b420ee64
BLAKE2b-256 checksum
How to use checksums
4c43a10aa47b930900d297e48483d83e6fc8730bacec56e331ccb0813a8583ee
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.8-py3-none-any.whl

Download URL django_basetestcase-1.1.8-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c013d310cddee90bff7f4a771002958e2aa6ef4f6c9875a52aca7aa42029a1e4
BLAKE2b-256 checksum
How to use checksums
09baf275613fa5a9209009f97605537bf235d3b648f597e49cc74e9e2bf3c6f1
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.8

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.

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page