-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing connection.queries #1791
Comments
Thank you for opening the issue. Creating a reproducible project would be very helpful. |
We are facing kind of a similar issue, we have a The configuration is something like this:
|
@ulgens @todorvelichkov I can't investigate this without a test case or more information on how to reproduce this. |
@tim-schilling Sorry for the delay on my end. I'm no longer working on the project I encountered this issue. I'll try to create an example to reproduce this |
Probably related to this report: since debug-toolbar 4.1 the I'm guessing something in the new commit now makes it use DJDT's cursor wrapper instead of the |
@elnygren noted that this also breaks |
Also this person may be having the same problem pytest-dev/pytest-django#1068 A really simple fix for testing is to |
After upgrading our project to
django-debug-toolbar==4.1
, we started having many test failures. Almost all ofself.assertNumQueries(<query_count>)
checks started failing saying the query count is different now. The queries we checked were actually the same as before, they were returning the same calls and returning the same data, but when I checkedconnection.queries
, a majority of the queries were seemingly missed.I did some testing with different commits and this problem starts with e7575e8
Not sure what else to add but if needed, I can try to create a small project reproducing this issue.
The text was updated successfully, but these errors were encountered: