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
1 changed files with 2 additions and 0 deletions

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)