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 md5 hash property to GSPath (#483) #490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Nov 30, 2024

Live tests for #483

* feat: added md5_hash property in GSClient._get_metadata, added md5 property inside GSPath

* docs: update supported methods and properties table in root README

* chore: running make format

* feat: updating code since linter wouldnt let me do it all in one line like the etag property

* chore: rename variable to match the variable naming in GSPath.stat()

* feat: update LocalGSPath to mimic local/implementations/azure.py for md5 property

* feat: updating MockBlob to include md5_hash property

* docs: updated history.md

* chore: reverting to pre PEP604 syntax

* test: added md5 test case, update MockBlob to take its value from an environment variable

* chore: applying format and lint
Copy link
Contributor

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

codecov bot commented Nov 30, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.1%. Comparing base (7f1a5dc) to head (b3b4b34).

Files with missing lines Patch % Lines
cloudpathlib/gs/gspath.py 85.7% 1 Missing ⚠️
cloudpathlib/local/implementations/gs.py 66.6% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #490     +/-   ##
========================================
- Coverage    94.4%   93.1%   -1.4%     
========================================
  Files          23      23             
  Lines        1776    1785      +9     
========================================
- Hits         1678    1663     -15     
- Misses         98     122     +24     
Files with missing lines Coverage Δ
cloudpathlib/gs/gsclient.py 90.0% <ø> (-1.5%) ⬇️
cloudpathlib/gs/gspath.py 92.4% <85.7%> (-1.2%) ⬇️
cloudpathlib/local/implementations/gs.py 97.1% <66.6%> (-2.9%) ⬇️

... and 2 files with indirect coverage changes

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