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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-basetestcase-1.0.5.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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for django-basetestcase-1.0.5.tar.gz
Algorithm Hash digest
SHA256 71c3c173742cc0ad9754301f2ba0b6e9aed353efedf8eef8267ba69164dd0096
MD5 59bcba5bd3c990e8610bdd5ceda596c6
BLAKE2b-256 c29575c376dbf0027819af917c88f4fce075edbcc03c2c745a9d34e28790565b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_basetestcase-1.0.5-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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for django_basetestcase-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05e53496ac6d2a0a350a078620cc4446742c1e1a14aae1ce972eae6507ad25fc
MD5 7b75a81a4cd0b27e242cba035ccf7682
BLAKE2b-256 de7fc5574524a06ba8917e6cfa091cf100d081ac53f7ed1acb5f4ce7fa2a9b1c

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