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

fix get_client #32

Merged
merged 4 commits into from
Jan 5, 2023
Merged

fix get_client #32

merged 4 commits into from
Jan 5, 2023

Conversation

dtrifiro
Copy link
Contributor

@dtrifiro dtrifiro commented Jan 5, 2023

  • do not pass over timeout/ssl_verify kwargs to client in get_client
  • include config tests (moved from iterative/dvc@a0c781a)

Verified

This commit was signed with the committer’s verified signature.
dtrifiro Daniele

Verified

This commit was signed with the committer’s verified signature.
dtrifiro Daniele
initial revision: dvc@a0c781a6

Verified

This commit was signed with the committer’s verified signature.
dtrifiro Daniele

Verified

This commit was signed with the committer’s verified signature.
dtrifiro Daniele
@@ -113,19 +113,19 @@ async def get_client(
# data blobs. We remove the total timeout, and only limit the time
# that is spent when connecting to the remote server and waiting
# for new data portions.
connect_timeout = kwargs.get("connect_timeout", self.REQUEST_TIMEOUT)
connect_timeout = kwargs.pop("connect_timeout", self.REQUEST_TIMEOUT)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use pop everywhere to avoid passing kwargs to client

assert headers[header] == password


def test_ssl_verify_disable():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified test_ssl_verify_{disable,custom_cert} to account for changes in #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant