#24290: postgres_tests fail ungracefully if psycopg2 isn't installed
-------------------------------------+-------------------------------------
     Reporter:  aaugustin            |                    Owner:
         Type:                       |  joelburton
  Cleanup/optimization               |                   Status:  assigned
    Component:  contrib.postgres     |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  1.8                  |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 After looking into this a bit more (trying to remove the hack in
 `runtests.py`), I think it might be a better use of time to just skip
 `postgres_tests` entirely when not testing with the
 `django.db.backends.postgresql_psycopg2` backend. While it's nice in
 theory to allow executing the non-database tests while testing with other
 backends, in practice it seems quite convoluted. Objections?

 Maybe a separate test app (without any models) would be the way to go if
 there's a strong incentive to allow that.

--
Ticket URL: <https://code.djangoproject.com/ticket/24290#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.799f2096560fe61587a0c2a8b1f21dd1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to