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

Allow a period in names of images uploaded to Wikimedia #2040

Closed
wants to merge 6 commits into from

Conversation

zstadler
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.33%. Comparing base (2fe5d22) to head (1e81ccc).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2040   +/-   ##
=======================================
  Coverage   91.33%   91.33%           
=======================================
  Files          93       93           
  Lines        8103     8103           
  Branches      985      985           
=======================================
  Hits         7401     7401           
  Misses        477      477           
  Partials      225      225           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HarelM
Copy link
Member

HarelM commented Oct 15, 2024

I think the regexp for invalid characters needs to be replaced in order to solve this...
In any case, a test needs to be added to make sure this is working as expected...

@zstadler
Copy link
Member Author

I think the regexp for invalid characters needs to be replaced in order to solve this...

a period is a valid character. For example: https://commons.wikimedia.org/wiki/File:0.10_Exhibition.jpg

@zstadler
Copy link
Member Author

In any case, a test needs to be added to make sure this is working as expected...

Could you please take care of that

@HarelM
Copy link
Member

HarelM commented Oct 15, 2024

WikiClientLibrary doesn't seem to have the relevant interfaces to be able to mock it properly.
I'll look into extracting the logic to a helper class that can be unit tested, hopefully...

@HarelM
Copy link
Member

HarelM commented Oct 18, 2024

@HarelM HarelM closed this Oct 18, 2024
@HarelM HarelM deleted the zstadler-patch-wikimedia-dot branch October 18, 2024 12:25
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