(tmpdir)
| 445 | |
| 446 | |
| 447 | def test_quoted_db_uri(tmpdir): |
| 448 | with mock.patch.object(PGCli, "connect") as mock_connect: |
| 449 | cli = PGCli(pgclirc_file=str(tmpdir.join("rcfile"))) |
| 450 | cli.connect_uri("postgres://bar%5E:%5Dfoo@baz.com/testdb%5B") |
| 451 | mock_connect.assert_called_with(database="testdb[", host="baz.com", user="bar^", passwd="]foo") |
| 452 | |
| 453 | |
| 454 | def test_pg_service_file(tmpdir): |
nothing calls this directly
no test coverage detected