Skip to content

Commit

Permalink
Comment out pq check to see which test setups fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wantsui committed Feb 20, 2025
1 parent 23b907e commit f4932e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/contrib/django/test_django_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ def test_psycopg3_query_default(client, snapshot_context, psycopg3_patched):
if not package_installed("psycopg"):
# skip test if psycopg3 is not installed as we need to test psycopg2 standalone with Django>=4.2.0
pytest.skip(reason="Psycopg3 not installed. Focusing on testing psycopg2 with Django>=4.2.0")
# Requires pq or it will throw ImportError: no pq wrapper available.
if not package_installed("pq"):
pytest.skip(reason="pq module not available")
# # Requires pq or it will throw ImportError: no pq wrapper available.
# if not package_installed("pq"):
# pytest.skip(reason="pq module not available")

from django.db import connections
from psycopg.sql import SQL
Expand Down

0 comments on commit f4932e9

Please sign in to comment.