Skip to content

Redesign b2http unit tests - #550

Merged
olzhasar-reef merged 4 commits into
Backblaze:masterfrom
reef-technologies:refactor-b2http-tests
Dec 10, 2025
Merged

Redesign b2http unit tests#550
olzhasar-reef merged 4 commits into
Backblaze:masterfrom
reef-technologies:refactor-b2http-tests

Conversation

@olzhasar-reef

Copy link
Copy Markdown
Contributor
  • Add responses library for mocking requests in tests
  • Redesign b2http unit tests using responses library
  • Update liccheck authorized_licenses
  • Fix type error in 429 retrying behavior with Retry-After header

Comment thread b2sdk/_internal/exception.py
Comment thread test/unit/b2http/test_b2http.py Outdated
@olzhasar-reef
olzhasar-reef force-pushed the refactor-b2http-tests branch 2 times, most recently from 91a2e9e to 118e982 Compare December 5, 2025 20:54
Avoid testing internal methods
Convert tests cases to pytest style
Use sentry responses for mocking out requests instead of relying on
magic mocks
@olzhasar-reef
olzhasar-reef merged commit c159384 into Backblaze:master Dec 10, 2025
66 of 72 checks passed
@olzhasar-reef
olzhasar-reef deleted the refactor-b2http-tests branch December 10, 2025 20:39
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