Skip to content

Conversation

@ptiurin
Copy link
Contributor

@ptiurin ptiurin commented Jan 24, 2022

Upgrading httpx to the latest version. pytest-httpx also needed to be updated. API has changed slightly between those versions, most notably to_response is deprecated in favour of httpx.Response also pytest-httpx no longer accepts as equal <url>/?database=<db> and <url>?database=<db>.
From quick research looks like slash first is generally accepted so I modified query_url mock to reflect that. This does not affect the actual execution (confirmed in integration testing) and is purely mock-related.

This PR is a prerequisite to fixing the TCP timeout.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@ptiurin
Copy link
Contributor Author

ptiurin commented Jan 24, 2022

Holding this off until the next version of SDK so we can release previous features separately from this. This allows any clients that are not compatible with the new httpx version to pin their sdk version and have all the features available.

@ptiurin ptiurin merged commit 2afec24 into main Jan 25, 2022
@ptiurin ptiurin deleted the upgrade-httpx-lib branch January 25, 2022 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants