Skip to content

Commit 42dab35

Browse files
author
Uziel Silva
committed
fix(main): Fix psycopg unit test
1 parent 2702590 commit 42dab35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_psycopg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def test_psycopg(context: ssl.SSLContext, kwargs: Any) -> None:
3333
socket.create_connection((ip_addr, 3307)),
3434
server_hostname=ip_addr,
3535
)
36-
with patch("psycopg.connect") as mock_connect:
36+
with patch("psycopg.Connection.connect") as mock_connect:
3737
type(mock_connect.return_value).autocommit = PropertyMock(return_value=True)
3838
connection = connect(ip_addr, sock, **kwargs)
3939
assert connection.autocommit is True

0 commit comments

Comments
 (0)