mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +00:00
Refs #24928 -- Added introspection support for PostgreSQL HStoreField.
This commit is contained in:
parent
0eec2a163a
commit
35f86b641a
6 changed files with 37 additions and 2 deletions
|
|
@ -517,8 +517,11 @@ class Tests(TestCase):
|
|||
def test_correct_extraction_psycopg_version(self):
|
||||
from django.db.backends.postgresql.base import Database, psycopg_version
|
||||
|
||||
psycopg_version.cache_clear()
|
||||
with mock.patch.object(Database, "__version__", "4.2.1 (dt dec pq3 ext lo64)"):
|
||||
self.addCleanup(psycopg_version.cache_clear)
|
||||
self.assertEqual(psycopg_version(), (4, 2, 1))
|
||||
psycopg_version.cache_clear()
|
||||
with mock.patch.object(
|
||||
Database, "__version__", "4.2b0.dev1 (dt dec pq3 ext lo64)"
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue