MCPcopy
hub / github.com/MagicStack/asyncpg / test_connect_pgpass_nonexistent

Method test_connect_pgpass_nonexistent

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

Source from the content-addressed store, hash-verified

1581 })
1582
1583 def test_connect_pgpass_nonexistent(self):
1584 # nonexistent passfile is OK
1585 self.run_testcase({
1586 'host': 'abc',
1587 'user': 'user',
1588 'database': 'db',
1589 'passfile': 'totally nonexistent',
1590 'result': (
1591 [('abc', 5432)],
1592 {
1593 'user': 'user',
1594 'database': 'db',
1595 'target_session_attrs': 'any',
1596 }
1597 )
1598 })
1599
1600 @unittest.skipIf(_system == 'Windows', 'no mode checking on Windows')
1601 def test_connect_pgpass_inaccessible_file(self):

Callers

nothing calls this directly

Calls 1

run_testcaseMethod · 0.95

Tested by

no test coverage detected