Skip to content

Fix CloudPath instantiation idempotency edge case#104

Merged
pjbull merged 3 commits intomasterfrom
idempotency
Nov 9, 2020
Merged

Fix CloudPath instantiation idempotency edge case#104
pjbull merged 3 commits intomasterfrom
idempotency

Conversation

@jayqi
Copy link
Copy Markdown
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
Copy Markdown
Contributor

github-actions bot commented Nov 9, 2020

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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