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

Fix CloudPath instantiation idempotency edge case #104

Merged
merged 3 commits into from
Nov 9, 2020
Merged

Conversation

jayqi
Copy link
Member

@jayqi jayqi commented Nov 9, 2020

CloudPath instantiation will use the same client as passed in CloudPath instance if a client is not explicitly specified. This was the only issue that made instantiation not idempotent in the case of using a non-default client.

Resolves #89

@jayqi jayqi requested a review from pjbull November 9, 2020 02:05
@jayqi jayqi changed the title Make CloudPath instantiation idempotent Fix CloudPath instantiation idempotency edge case Nov 9, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2020

@codecov
Copy link

codecov bot commented Nov 9, 2020

Codecov Report

Merging #104 (d17ee41) into master (5a4b103) will decrease coverage by 0.2%.
The diff coverage is 82.3%.

@@           Coverage Diff            @@
##           master    #104     +/-   ##
========================================
- Coverage    91.7%   91.4%   -0.3%     
========================================
  Files           8       8             
  Lines         668     680     +12     
========================================
+ Hits          613     622      +9     
- Misses         55      58      +3     
Impacted Files Coverage Δ
cloudpathlib/azure/azblobpath.py 95.6% <75.0%> (-2.0%) ⬇️
cloudpathlib/s3/s3path.py 97.6% <75.0%> (-2.4%) ⬇️
cloudpathlib/cloudpath.py 89.6% <88.8%> (-0.2%) ⬇️

@pjbull pjbull merged commit 20ace44 into master Nov 9, 2020
@pjbull pjbull deleted the idempotency branch November 9, 2020 16:45
@pjbull
Copy link
Member

pjbull commented Nov 9, 2020

🕺

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.

Ensure re-instantiation is idempotent
2 participants