-
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
Test with postgresql and mariadb on multiple versions of Django. #1226
Test with postgresql and mariadb on multiple versions of Django. #1226
Conversation
eee14c8
to
7b22659
Compare
I was able to track down the problem to postgres having a different CursorDebugWrapper class defined which was not being monkeypatched by |
7b22659
to
5405757
Compare
Codecov Report
@@ Coverage Diff @@
## master #1226 +/- ##
==========================================
+ Coverage 86.59% 86.62% +0.03%
==========================================
Files 25 25
Lines 1432 1436 +4
Branches 205 206 +1
==========================================
+ Hits 1240 1244 +4
Misses 140 140
Partials 52 52
Continue to review full report at Codecov.
|
314762f
to
ef6117a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't you want to change .travis.yml
too to include the new test environments? (Of course this makes tests slower again.)
if connection.vendor == "postgresql": | ||
from django.db.backends.postgresql import base as base_module | ||
else: | ||
from django.db.backends import utils as base_module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the postgresql branch necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Django has a new subclass for the CursorDebugWrapper for postgres. With Django 3 and postgres, the current version of the toolbar's debug_shell
command doesn't work.
You're absolutely right about .travis.yml. For some reason I thought it was using the .tox file. |
Hi @tim-schilling thanks for your job! I have the same problem described in issue #1231 . Do you have any news about this PR ? |
Hi, I have the same issue too. Any news? Thanks a lot |
Same issue here. Please, fix this ASAP! Thanks a lot for your amazing job. |
0b3076a
to
59af30f
Compare
ba99434
to
0caa826
Compare
Sorry @matthiask I didn't notice the errors. Everything should be good now, unless you want me to change how to handle the conditional import logic. |
Awesome, thanks! |
Expands the tests for the three latest versions of Django.