Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing cert_check argument to MockMinioClient #36

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pytest_minio_mock/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ class MockMinioClient:
_region (str): The region of the server (not used in mock).
_http_client: The HTTP client to use (not used in mock).
_credentials: The credentials object (not used in mock).
_cert_check (bool): Whether to check certificates (not used in mock).
buckets (dict): A dictionary to hold mock bucket data.
"""

Expand All @@ -776,6 +777,7 @@ def __init__(
region=None,
http_client=None,
credentials=None,
cert_check=True,
):
"""
Initialize the MockMinioClient with configuration similar to the real client.
Expand All @@ -789,6 +791,7 @@ def __init__(
region (str, optional): The region of the server.
http_client (optional): The HTTP client to use. Defaults to None.
credentials (optional): The credentials object. Defaults to None.
cert_check (optional): Whether to check certificates. Defaults to True.
"""
self._base_url = endpoint
self._access_key = access_key
Expand All @@ -798,6 +801,7 @@ def __init__(
self._region = region
self._http_client = http_client
self._credentials = credentials
self._cert_check = cert_check
self.buckets = {}

def connect(self, servers):
Expand Down
Loading