We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2702590 commit 42dab35Copy full SHA for 42dab35
tests/unit/test_psycopg.py
@@ -33,7 +33,7 @@ async def test_psycopg(context: ssl.SSLContext, kwargs: Any) -> None:
33
socket.create_connection((ip_addr, 3307)),
34
server_hostname=ip_addr,
35
)
36
- with patch("psycopg.connect") as mock_connect:
+ with patch("psycopg.Connection.connect") as mock_connect:
37
type(mock_connect.return_value).autocommit = PropertyMock(return_value=True)
38
connection = connect(ip_addr, sock, **kwargs)
39
assert connection.autocommit is True
0 commit comments