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

Method test_connect_pgpass_nonexistent

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

Source from the content-addressed store, hash-verified

1592 })
1593
1594 def test_connect_pgpass_nonexistent(self):
1595 # nonexistent passfile is OK
1596 self.run_testcase({
1597 'host': 'abc',
1598 'user': 'user',
1599 'database': 'db',
1600 'passfile': 'totally nonexistent',
1601 'result': (
1602 [('abc', 5432)],
1603 {
1604 'user': 'user',
1605 'database': 'db',
1606 'target_session_attrs': 'any',
1607 }
1608 )
1609 })
1610
1611 @unittest.skipIf(_system == 'Windows', 'no mode checking on Windows')
1612 def test_connect_pgpass_inaccessible_file(self):

Callers

nothing calls this directly

Calls 1

run_testcaseMethod · 0.95

Tested by

no test coverage detected