Skip to main content

A collection of cheater methods for the Django TestCase.

Project description

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.

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-basetestcase-1.1.8.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

django_basetestcase-1.1.8-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file django-basetestcase-1.1.8.tar.gz.

File metadata

  • Download URL: django-basetestcase-1.1.8.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-basetestcase-1.1.8.tar.gz
Algorithm Hash digest
SHA256 a44a7d77e0420c1b65f811c233869bcc90dc7e525cd3c0b0ec050939b420ee64
MD5 8167d2eb25c83f8540d001df7c1ca92a
BLAKE2b-256 4c43a10aa47b930900d297e48483d83e6fc8730bacec56e331ccb0813a8583ee

See more details on using hashes here.

File details

Details for the file django_basetestcase-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: django_basetestcase-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_basetestcase-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c013d310cddee90bff7f4a771002958e2aa6ef4f6c9875a52aca7aa42029a1e4
MD5 916bcf19730cf956dd0aec04f7ba10bf
BLAKE2b-256 09baf275613fa5a9209009f97605537bf235d3b648f597e49cc74e9e2bf3c6f1

See more details on using hashes here.

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