-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add mock_http fixture; migrate 9 intg to mock_http #22710
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
Merged
mwdd146980
merged 20 commits into
mwdd146980/httpx-migration-base
from
mwdd146980/phase1b-test-decoupling
Feb 28, 2026
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
82b8aaf
Redesign mock_http fixture to patch RequestsWrapper at class level
mwdd146980 f4e689f
Migrate falco tests from requests.Session.get patch to mock_http fixture
mwdd146980 e67204f
Migrate strimzi tests from requests.Session.get patch to mock_http fi…
mwdd146980 56475b3
Fix E402: move pytest_plugins after all imports
mwdd146980 fad8557
Migrate couchbase tests from requests.Session.get patch to mock_http …
mwdd146980 40b1e59
Rename mock_http fixture to mock_http_client
mwdd146980 8be2a72
Migrate ray tests from requests.Session.get patch to mock_http_client…
mwdd146980 9d6a7b7
Migrate tekton tests from requests.Session.get patch to mock_http_cli…
mwdd146980 5ab9547
Switch from pytest_plugins to direct import for fixture registration
mwdd146980 693faee
Revert rename: mock_http_client → mock_http
mwdd146980 0549839
Redesign mock_http: use create_autospec(HTTPClientProtocol) + Propert…
mwdd146980 3321b99
Shorten docstring
mwdd146980 8d39453
Migrate kubevirt_api, kubevirt_controller, kubevirt_handler tests to …
mwdd146980 c4faf9a
Fix Accept header mutation side-effect in OM V2 scraper
mwdd146980 5040402
Fix bentoml tests broken by scraper sharing check.http
mwdd146980 05152e7
Fix Vault auth headers lost when OM V2 scraper reuses check.http
mwdd146980 a12f3ee
Raise NotImplementedError for options_method in mock_http fixture
mwdd146980 8db2b4f
Move mock_http fixture to datadog_checks_dev pytest plugin
mwdd146980 93c6cd2
Remove call_count assertion from bentoml test
mwdd146980 ea5790d
Drop unused get_mock variable in bentoml test
mwdd146980 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Asserting this would tie us to the implementation.
IMO: What our users see are metrics and health checks, those are the things we should ensure our code is doing, testing the code itself will only require us to update the tests for every change in the code, even if it doesn't change any output or observed behavior. This is similar to the black-box testing concept.
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.
Applied suggestion.