Skip to content

Conversation

@LeMyst
Copy link
Owner

@LeMyst LeMyst commented Jun 12, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2025 19:06

This comment was marked as outdated.

@LeMyst LeMyst requested a review from Copilot June 12, 2025 19:10

This comment was marked as outdated.

@LeMyst LeMyst force-pushed the add-requests-params-login branch from 83b7338 to bcc7fab Compare June 12, 2025 19:51
@LeMyst LeMyst force-pushed the add-requests-params-login branch from bcc7fab to bfd5b86 Compare June 13, 2025 03:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dpriskorn
Copy link
Contributor

LGTM

@LeMyst LeMyst requested a review from Copilot September 1, 2025 08:36

This comment was marked as outdated.

@LeMyst LeMyst requested a review from Copilot September 1, 2025 09:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for passing additional HTTP request parameters to login methods. The primary goal is to enable users to specify custom request parameters like proxies, headers, timeout settings, and SSL verification options when authenticating with MediaWiki instances.

Key changes:

  • Enhanced Login and Clientlogin classes to accept **kwargs parameters for HTTP requests
  • Added parameter filtering to only allow specific safe parameters (headers, proxies, timeout, verify)
  • Added logging warnings for unsupported parameters

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
wikibaseintegrator/wbi_login.py Added **kwargs support to Login and Clientlogin constructors with parameter filtering and validation
test/test_wbi_login.py Added test for SSL verification functionality and modernized test assertions to use pytest.raises
test/test_wbi_helpers.py Modernized test assertions from unittest.TestCase().assertRaises to pytest.raises

@LeMyst LeMyst merged commit 3010678 into master Sep 2, 2025
16 of 21 checks passed
@LeMyst LeMyst deleted the add-requests-params-login branch September 2, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants