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

Start a real http server instead of mocking libs #1938

Merged
merged 6 commits into from Mar 6, 2023

Conversation

antonpirker
Copy link
Member

@antonpirker antonpirker commented Mar 2, 2023

Changed tests to not make actual HTTP requests. And because we monkey patch very low level HTTP libs of Python it is hard to mock them, because most of the time our monkey patches are overwritten by the mock. So I created an actual HTTP server to make requests to.

Fixes #1920

@antonpirker antonpirker marked this pull request as ready for review March 2, 2023 12:42
@antonpirker antonpirker enabled auto-merge (squash) March 6, 2023 15:23
@antonpirker antonpirker merged commit 2c8d277 into master Mar 6, 2023
@antonpirker antonpirker deleted the antonpirker/1920-fix-http-tests branch March 6, 2023 15:32
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.

responses in tests/integrations/stdlib/test_httplib.py does not intercept urlopen requests
2 participants