Conversation
Contributor
Codecov Report
@@ Coverage Diff @@
## master #131 +/- ##
========================================
+ Coverage 92.2% 93.5% +1.3%
========================================
Files 20 21 +1
Lines 1098 1119 +21
========================================
+ Hits 1013 1047 +34
+ Misses 85 72 -13
|
jayqi
commented
Mar 8, 2021
|
|
||
| load_dotenv(find_dotenv()) | ||
| if os.getenv("USE_LIVE_CLOUD") == "1": | ||
| load_dotenv(find_dotenv()) |
Member
Author
There was a problem hiding this comment.
This had fooled my local testing by loading environment variables when I wasn't expecting them for the mocked tests.
Member
Author
|
Ended up doing more on fixing tests than I expected, but this is actually ready now @pjbull |
pjbull
approved these changes
Mar 8, 2021
Member
pjbull
left a comment
There was a problem hiding this comment.
This looks good to me, thanks for digging in and making this neat and tidy. Loving the readable, standardized exceptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cloudpathlibexceptions to be located in newcloudpathlib.exceptionsmodule.cloudpathlibexceptions to subclass from new baseCloudPathException. This allows for easy catching of any custom exception fromcloudpathlib.Erroras recommended by PEP 8.CloudPathFileExistsError,CloudPathIsADirectoryErrororCloudPathNotADirectoryErrorexceptions instead of a genericValueError.cloudpathlibpackage namespace. Import fromcloudpathlib.exceptionsinstead if needed.AzureBlobClientinstantiation to throw new errorMissingCredentialsErrorwhen no credentials are provided, instead ofAttributeError.LocalAzureBlobClientchanged to throw error under same conditions accordingly.GSClientto instantiate as anonymous with public access only when instantiated with no credentials, instead of erroring.Some additional testing updates:
conftest.pyonly runload_dotenvifUSE_LIVE_CLOUDis set to 1. This was fooling my testing because an unset env var was present in my.envfile.cloudpathlib.localequivalents.