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.

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)

Source distribution for django-basetestcase 1.1
File Size Uploaded
django-basetestcase-1.1.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-basetestcase 1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

This release

1.1 This release

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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