MCPcopy
hub / github.com/django/django / test_get_database_version

Method test_get_database_version

tests/backends/postgresql/tests.py:580–583  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

578 self.assertEqual([q["sql"] for q in connection.queries], [copy_sql])
579
580 def test_get_database_version(self):
581 new_connection = no_pool_connection()
582 new_connection.pg_version = 150009
583 self.assertEqual(new_connection.get_database_version(), (15, 9))
584
585 @mock.patch.object(connection, "get_database_version", return_value=(14,))
586 def test_check_database_version_supported(self, mocked_get_database_version):

Callers

nothing calls this directly

Calls 2

no_pool_connectionFunction · 0.70
get_database_versionMethod · 0.45

Tested by

no test coverage detected