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

487 live tests #491

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

487 live tests #491

wants to merge 3 commits into from

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Nov 30, 2024

Live tests for #487

M0dEx and others added 2 commits November 29, 2024 16:14
* fix(az): catch HttpResponseError in _check_hns

* chore: update HISTORY.md
Copy link
Contributor

github-actions bot commented Nov 30, 2024

@github-actions github-actions bot temporarily deployed to pull request November 30, 2024 00:17 Inactive
Copy link

codecov bot commented Nov 30, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 94.1%. Comparing base (7f1a5dc) to head (912a696).

Files with missing lines Patch % Lines
cloudpathlib/azure/azblobclient.py 60.0% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #491     +/-   ##
========================================
- Coverage    94.4%   94.1%   -0.3%     
========================================
  Files          23      23             
  Lines        1776    1788     +12     
========================================
+ Hits         1678    1684      +6     
- Misses         98     104      +6     
Files with missing lines Coverage Δ
cloudpathlib/azure/azblobclient.py 94.2% <60.0%> (-2.7%) ⬇️

Copy link

@M0dEx M0dEx left a comment

Choose a reason for hiding this comment

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

Some things I missed in the initial PR.

Comment on lines +8 to +11
try:
from typing import cast
except ImportError:
from typing_extensions import cast
Copy link

Choose a reason for hiding this comment

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

Wouldn't from typing_extensions import cast suffice, as it already does a very similar thing under the hood?

Comment on lines +214 to +217
return self._check_hns_root_metadata(cloud_path)
except HttpResponseError as error:
if error.status_code == HTTPStatus.FORBIDDEN:
self._check_hns_root_metadata(cloud_path)
Copy link

Choose a reason for hiding this comment

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

nit: to be consistent, either both of these should be a return statement or none of them should.

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.

2 participants