-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
tests/func/test_data_cloud.py
Outdated
def _get_url(self): | ||
self.dname = Local.get_url() | ||
self.dname = super()._get_url() | ||
return self.dname |
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.
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) |
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.
Neat!
3e9f3f6
to
69965e3
Compare
9662f83
to
70df0d3
Compare
70df0d3
to
37b9d32
Compare
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.
Looks great! Thank you! 🙏
This is what I had in mind when refactoring #2878. This is still a work in progress at the moment though.
TODO
❗ 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. 🙏