Skip to main content

Test helpers, mostly geared around the database. Tested on Django 1.2.

Install

pip install django-test-helpers

Usage

Create a temporary database:

from testhelpers.dbmanager import TemporaryDatabase

with TemporaryDatabase(fixtures=['myfixture.json'], db_prefix='test'):
    # do some stuff
    pass

Run some commands in transactional isolation:

from testhelpers.dbmanager import Transactionless

with Transactionless(fixtures=['myfixture.json']):
    # do some stuff
    pass

Metadata

Release files for django-test-helpers 0.1.0

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-test-helpers 0.1.0
File Size Uploaded Provenance Actions
django-test-helpers-0.1.0.tar.gz 5.0 kB Without provenance Details for django-test-helpers-0.1.0.tar.gz

Release files / django-test-helpers-0.1.0.tar.gz

Download URL django-test-helpers-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
58f5a2b5c02ee3fddeec5c2f3269c65b659cff2c69ef75ab12c8ae127a2aecd0
BLAKE2b-256 checksum
How to use checksums
0a9352da9ba612ba8247c79a64cf28ba19a468afdd5ac89e9343d5685d33b1ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-test-helpers 0.1.0

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

0.1.0 This release

1 release file 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