Skip to content

Conversation

tiborsimko
Copy link
Member

Fixes issue where get-file-locations --server https://example.org would ignore the custom server and revert to the default HTTPS server.

Closes #153

Copy link

codecov bot commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.75%. Comparing base (625eb9d) to head (e900f97).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
- Coverage   80.80%   80.75%   -0.06%     
==========================================
  Files          12       12              
  Lines         719      717       -2     
==========================================
- Hits          581      579       -2     
  Misses        138      138              
Files with missing lines Coverage Δ
cernopendata_client/searcher.py 86.36% <100.00%> (-0.25%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

new_server = server
elif searcher_protocol == "https":
new_server = SERVER_HTTPS_URI
new_server = server
Copy link
Contributor

Choose a reason for hiding this comment

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

this is the same as line 202, isn't it? Change the if condition to match both http and https?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, fixed 😉

…pendata#155)

Fixes issue where `get-file-locations --server https://example.org`
would ignore the custom server and revert to the default HTTPS server.

Closes cernopendata#153
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.

get-file-locations: respect --server value when using HTTPS protocol
2 participants