(tmpdir)
| 523 | |
| 524 | |
| 525 | def test_port_db_uri(tmpdir): |
| 526 | with mock.patch.object(PGCli, "connect") as mock_connect: |
| 527 | cli = PGCli(pgclirc_file=str(tmpdir.join("rcfile"))) |
| 528 | cli.connect_uri("postgres://bar:foo@baz.com:2543/testdb") |
| 529 | mock_connect.assert_called_with(database="testdb", host="baz.com", user="bar", passwd="foo", port="2543") |
| 530 | |
| 531 | |
| 532 | def test_multihost_db_uri(tmpdir): |
nothing calls this directly
no test coverage detected