Add a __note__ field for attaching notes to assertQueries expectations.

Review Request #13387 — Created Oct. 29, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

Query expectation dictionaries now support a __note__ field, which can
be used to describe the query or provide some other identifying
information. This will be shown in the "Query <num>" line in the output
whenever there's a query expectation failure, helping with debugging.

Unit tests pass.

Used this in the development of some other unit tests.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add a __note__ field for attaching notes to assertQueries expectations.
Query expectation dictionaries now support a `__note__` field, which can be used to describe the query or provide some other identifying information. This will be shown in the "Query <num>" line in the output whenever there's a query expectation failure, helping with debugging.
2a49c41b33abac13c1469d1ce3fac9ddc7392713 Christian Hammond
djblets/testing/testcases.py
Loading...