Skip to content

fix: mock HTTP session in TestUserAgentClients to avoid live network calls - #929

Merged
shrutiburman merged 1 commit into
mainfrom
mock-tests-py
Jun 5, 2026
Merged

shrutiburman merged 1 commit into
mainfrom
mock-tests-py

Conversation

@shrutiburman

@shrutiburman shrutiburman commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes

Mocked session.send() in TestUserAgentClients tests were making live calls to api.twilio.com

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

…calls

Tests only need to inspect request headers — mocking session.send()
prevents real connections to api.twilio.com which are blocked on
locked-down CI agents.

Co-Authored-By: sburman <[email protected]>
@shrutiburman
shrutiburman merged commit 7b9fc5e into main Jun 5, 2026
6 checks passed
@shrutiburman
shrutiburman deleted the mock-tests-py branch June 5, 2026 11: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.

2 participants