Skip to content

Commit b3c3141

Browse files
committed
Redesign b2http unit tests using responses library
Avoid testing internal methods Convert tests cases to pytest style Use sentry responses for mocking out requests instead of relying on magic mocks
1 parent 43f7e63 commit b3c3141

File tree

3 files changed

+363
-246
lines changed

3 files changed

+363
-246
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Redesign `b2http` unit tests utilizing sentry `responses` library for mocking out the `requests` package.

test/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
######################################################################
1010

1111

12-
pytest_plugins = ["b2sdk.v3.testing"]
12+
pytest_plugins = ['b2sdk.v3.testing']

0 commit comments

Comments
 (0)