(tmpdir)
| 543 | |
| 544 | |
| 545 | def test_application_name_db_uri(tmpdir): |
| 546 | with mock.patch.object(PGExecute, "__init__") as mock_pgexecute: |
| 547 | mock_pgexecute.return_value = None |
| 548 | cli = PGCli(pgclirc_file=str(tmpdir.join("rcfile"))) |
| 549 | cli.connect_uri("postgres://bar@baz.com/?application_name=cow") |
| 550 | mock_pgexecute.assert_called_with("bar", "bar", "", "baz.com", "", "", notify_callback, application_name="cow") |
| 551 | |
| 552 | |
| 553 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected