Skip to content

Commit ef46cf0

Browse files
Uziel Silvathameezb
authored andcommitted
fix(main): Fix psycopg unit test
1 parent 28c3d95 commit ef46cf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)