We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05b542 commit 73af7e2Copy full SHA for 73af7e2
tests/functional/testing/test_non_default_mock.py
@@ -2,8 +2,6 @@
2
Test that globus_sdk.testing can accept a non-default requests mock
3
"""
4
5
-import sys
6
-
7
import pytest
8
import requests
9
import responses
@@ -19,13 +17,6 @@ def custom_requests_mock():
19
17
with responses.RequestsMock() as m:
20
18
yield m
21
22
- if sys.version_info < (3, 7):
23
- # start the default mock again afterwards, so that test fixture teardown doesn't
24
- # double-stop and fail on responses==0.17.0
25
- # use an `if version_info` check to allow pyupgrade to remove this automatically
26
- # in the future
27
- responses.start()
28
29
30
def test_get_last_request_on_empty_custom_mock_returns_none(custom_requests_mock):
31
assert get_last_request(requests_mock=custom_requests_mock) is None
0 commit comments