django_assert_queriesΒΆ

Django query assertion and instrumentation.

New in version 1.0.

This is the primary module for django-assert-queries. Projects should import straight from this module.

The following functions are available:

ExecutedQueryInfo

Information on an executed query.

ExecutedQueryType

A type of executed query that can be inspected.

ExecutedSubQueryInfo

Information on a subquery within an executed query.

catch_queries

Catch queries and provide information for further inspection.

ExpectedQueries

A type representing list of expected queries.

ExpectedQuery

An expected query for a query assertion.

QueryMismatch

Information on a mismatched query.

compare_queries

Assert the number and complexity of queries.