(self)
| 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): |
nothing calls this directly
no test coverage detected