-
Notifications
You must be signed in to change notification settings - Fork 64
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
Append filename to destination if source is file #121
Conversation
The change itself looks good! For the tests, I would recommend adding a new test instead of adding to |
By the way, if you write something like "Fixes #74" in your PR description, GitHub has special functionality to link this PR to that issue and will close the issue automatically when the PR is merged. If it's working, you'd see that the keyword has a dotted underline. The mechanics and triggering keywords are documented here: |
Nice one! |
Good idea, I will separate that test. What do you think about having a class for testing, say |
For this project, we're using test modules (e.g., |
I never used test classes myself, but I was curious to hear if you thought it could be a good idea. I see that most live tests are failing, does it have anything to do with the fact that this is a PR from a forked repository, for which there are no credentials? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few requested revisions.
I see that most live tests are failing, does it have anything to do with the fact that this is a PR from a forked repository, for which there are no credentials?
Yes, that's the case. Sorry for the inconvenience—I'll think about how we can make this process better. What we did for a previous PR was for one of us (the maintainers) to copy the fork's branch over to the main repository so that the CI can run with the necessary credentials. For now, let's continue development in this PR until we're happy with the changes (using the CI steps before the live tests as a quality check). When it's ready, we can do the same approach of copying the branch to the main repo.
Co-authored-by: Jay Qi <[email protected]>
Fixes #74.
The
CloudPath.download_to
method adds the filename to the destination path if the cloud source is a file and the destination is a folder.