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

Uploaded Source

Built Distribution

django_basetestcase-1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-basetestcase-1.1.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.tar.gz
Algorithm Hash digest
SHA256 627fbb1fa291ef1b8460871600c6662449c00dc88d97fc8af0c3b845b361654e
MD5 04bf5cb72ab01d56bf774e2db42905c4
BLAKE2b-256 f21a960c4c1b5717a102cbae80cf3089fd21de58956361bc6a4130602d7c1c0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_basetestcase-1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7a429f2289ff6dbf8c0a0f0f779286253ca1efb149d935f565e7b87e848c69
MD5 75c2e7106425f3f2e72793a327fd215d
BLAKE2b-256 b4245ee76962390953fd9f10bd52ec4ee165ab3f1f55bf50ad2554da605ebf01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page