MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_server_version_01

Method test_server_version_01

tests/test_connect.py:113–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 'UTF8')
112
113 async def test_server_version_01(self):
114 version = self.con.get_server_version()
115 version_num = await self.con.fetchval("SELECT current_setting($1)",
116 'server_version_num', column=0)
117 ver_maj = int(version_num[:-4])
118 ver_min = int(version_num[-4:-2])
119 ver_fix = int(version_num[-2:])
120
121 self.assertEqual(version[:3], (ver_maj, ver_min, ver_fix))
122
123 def test_server_version_02(self):
124 versions = [

Callers

nothing calls this directly

Calls 2

get_server_versionMethod · 0.80
fetchvalMethod · 0.45

Tested by

no test coverage detected