René's URL Explorer Experiment


Title: test(openai-agents): Replace mocks with `httpx` for streamed responses by alexander-alderman-webb · Pull Request #5580 · getsentry/sentry-python · GitHub

Open Graph Title: test(openai-agents): Replace mocks with `httpx` for streamed responses by alexander-alderman-webb · Pull Request #5580 · getsentry/sentry-python

X Title: test(openai-agents): Replace mocks with `httpx` for streamed responses by alexander-alderman-webb · Pull Request #5580 · getsentry/sentry-python

Description: Description Replace mocks with httpx types to avoid test failures when library internals change. Move async_iterator() to conftest.py Issues Reminders Please add tests to validate your changes, and lint your code using tox -e linters. Add GH Issue ID & Linear ID (if applicable) PR title should use conventional commit style (feat:, fix:, ref:, meta:) For external contributors: CONTRIBUTING.md, Sentry SDK development docs, Discord community

Open Graph Description: Description Replace mocks with httpx types to avoid test failures when library internals change. Move async_iterator() to conftest.py Issues Reminders Please add tests to validate your changes, ...

X Description: Description Replace mocks with httpx types to avoid test failures when library internals change. Move async_iterator() to conftest.py Issues Reminders Please add tests to validate your changes, ...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/5580

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:38267df0-c5ad-12b7-b972-38c25764d310
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1FA:25598F:6FCE0B:963978:6B00D80C
html-safe-nonce81c57dbf16821e6688a45550d61212d77745a76e33f13d81f4c3c2f5203ccc47
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUZBOjI1NTk4Rjo2RkNFMEI6OTYzOTc4OjZCMDBEODBDIiwidmlzaXRvcl9pZCI6IjExODE4NzIwODU2NDgwNzA2NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac983563ff68a9269a050a358fc11130bacd47a5cae23db0765c1162b66724d4df
hovercard-subject-tagpull_request:3348118534
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/5580/files
twitter:imagehttps://avatars.githubusercontent.com/u/224035503?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224035503?s=400&v=4
og:image:altDescription Replace mocks with httpx types to avoid test failures when library internals change. Move async_iterator() to conftest.py Issues Reminders Please add tests to validate your changes, ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/5580/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5580%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5580%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/5580/files
Reloadhttps://github.com/getsentry/sentry-python/pull/5580/files
Reloadhttps://github.com/getsentry/sentry-python/pull/5580/files
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
alexander-alderman-webbhttps://github.com/alexander-alderman-webb
masterhttps://github.com/getsentry/sentry-python/tree/master
webb/remove-streamed-mockshttps://github.com/getsentry/sentry-python/tree/webb/remove-streamed-mocks
Conversation 14 https://github.com/getsentry/sentry-python/pull/5580
Commits 8 https://github.com/getsentry/sentry-python/pull/5580/commits
Checks 161 https://github.com/getsentry/sentry-python/pull/5580/checks
Files changed https://github.com/getsentry/sentry-python/pull/5580/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5580/files
test(openai-agents): Replace mocks with httpx for streamed responses https://github.com/getsentry/sentry-python/pull/5580/files#top
Show all changes 8 commits https://github.com/getsentry/sentry-python/pull/5580/files
9dcb437 test(openai-agents): Replace mocks with library types for streamed re… alexander-alderman-webb Mar 3, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/9dcb4378120657d4c35f95ec1677031eff30250c
0de90f0 . alexander-alderman-webb Mar 3, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/0de90f0093901cae4fce8b6deb1fe78d8a762495
0102259 patch further down call stack alexander-alderman-webb Mar 3, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/01022593d3262774e7fb0abbe9650bba4e145043
a920f4e add docstring alexander-alderman-webb Mar 3, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/a920f4e51d735263e2a800c82ca3e41c94611aea
f514196 rename sse_chunks to server_side_event_chunks alexander-alderman-webb Mar 6, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/f5141960990817637cf2a6f16b8fbace91c7c39b
2456959 use OP constant alexander-alderman-webb Mar 6, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/245695987858e167dce1a61be021e07314772748
9d1cd2d remove unused import alexander-alderman-webb Mar 6, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/9d1cd2d9bb6340904a2dc6920f7c3e971ae66a72
8006cfe Merge branch 'master' into webb/remove-streamed-mocks alexander-alderman-webb Mar 9, 2026 https://github.com/getsentry/sentry-python/pull/5580/commits/8006cfea3b933d3c5ffc64721e99c5b45731e269
Clear filters https://github.com/getsentry/sentry-python/pull/5580/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5580/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5580/files
conftest.py https://github.com/getsentry/sentry-python/pull/5580/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
test_anthropic.py https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
test_openai.py https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
test_openai_agents.py https://github.com/getsentry/sentry-python/pull/5580/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
tests/conftest.pyhttps://github.com/getsentry/sentry-python/pull/5580/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
View file https://github.com/getsentry/sentry-python/blob/8006cfea3b933d3c5ffc64721e99c5b45731e269/tests/conftest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/5580/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/5580/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
https://github.com/getsentry/sentry-python/pull/5580/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
tests/integrations/anthropic/test_anthropic.pyhttps://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
View file https://github.com/getsentry/sentry-python/blob/8006cfea3b933d3c5ffc64721e99c5b45731e269/tests/integrations/anthropic/test_anthropic.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/5580/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/pull/5580/files#diff-3f015b03855e3bb647b04195c2a27a75ece9eb2c427a13c79a5ab81660a1365d
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
tests/integrations/openai/test_openai.pyhttps://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
View file https://github.com/getsentry/sentry-python/blob/8006cfea3b933d3c5ffc64721e99c5b45731e269/tests/integrations/openai/test_openai.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/5580/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
https://github.com/getsentry/sentry-python/pull/5580/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5580/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5580/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.