postgresql datastore tests

This commit is contained in:
Jason Solomon 2020-11-17 12:48:00 +11:00
parent f109dd7ad8
commit 89b1a91659

View file

@ -70,6 +70,7 @@ class PostgresqlTest(unittest.TestCase):
def test_switch_database(self):
"""Test switch database method."""
db = self._get_datastore()
with mock.patch('psycopg2.connect') as _:
db.switch_database(db_name='dfdewey', autocommit=True)
def test_table_exists(self):