1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed postgres_tests.test_signals.OIDTests when run in isolation.

This commit is contained in:
Jon Dufresne 2018-10-09 06:23:36 -07:00 committed by Tim Graham
parent 1e87c9fe71
commit 31c0348687

View File

@ -18,10 +18,12 @@ class OIDTests(PostgreSQLTestCase):
self.assertTrue(all(isinstance(oid, int) for oid in oids))
def test_hstore_cache(self):
get_hstore_oids(connection.alias)
with self.assertNumQueries(0):
get_hstore_oids(connection.alias)
def test_citext_cache(self):
get_citext_oids(connection.alias)
with self.assertNumQueries(0):
get_citext_oids(connection.alias)