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

test: use helper remotes in TestCases #3136

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Jan 14, 2020

This is what I had in mind when refactoring #2878. This is still a work in progress at the moment though.

TODO

  • Run all 9 tests to see if I messed up anything. :)

  • ❗ Have you followed the guidelines in the Contributing to DVC list?

  • 📖 Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.

  • ❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

Comment on lines 258 to 260
def _get_url(self):
self.dname = Local.get_url()
self.dname = super()._get_url()
return self.dname
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this one doesn't match directly with LOCAL.get_url 🙁 I guess the line that uses dname down below is a pretty useless test, but just not to dive into it, we could simply wrap super().get_url here.

@@ -42,9 +42,11 @@
)
TEST_GDRIVE_CLIENT_SECRET = "2fy_HyzSwkxkGzEken7hThXb"

always_test = staticmethod(lambda: True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@skshetry skshetry force-pushed the refactor-remotes-inherit branch 3 times, most recently from 3e9f3f6 to 69965e3 Compare January 14, 2020 11:13
@skshetry skshetry self-assigned this Jan 14, 2020
@skshetry skshetry added the refactoring Factoring and re-factoring label Jan 14, 2020
@skshetry skshetry marked this pull request as ready for review January 14, 2020 13:40
@skshetry skshetry changed the title [WIP] use helper remotes in TestCases test: use helper remotes in TestCases Jan 14, 2020
@skshetry skshetry requested review from pared and efiop January 14, 2020 13:43
Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you! 🙏

@efiop efiop merged commit 2d1e327 into iterative:master Jan 14, 2020
@skshetry skshetry deleted the refactor-remotes-inherit branch January 14, 2020 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants