Skip to content

Commit 9c10590

Browse files
author
gabino
committed
Removed temporary patch for VCRHTTPResponse version_string from conftest.py
1 parent 622e6cf commit 9c10590

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

cuenca/resources/card_transactions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515

1616
class CardTransaction(Transaction):
17+
def __init__(self, *args, **kwargs):
18+
super(CardTransaction, self).__init__(*args, **kwargs)
19+
1720
_resource: ClassVar = 'card_transactions'
1821
_query_params: ClassVar = CardTransactionQuery
1922

requirements-test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ pytest-vcr==1.0.*
99
requests-mock==1.9.*
1010
types-freezegun==1.1.7
1111
types-requests
12-
vcrpy==6.0.2
12+
#vcrpy==6.0.2
13+
git+https://github.com/kevin1024/vcrpy.git@master

tests/conftest.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@
99

1010
cuenca.configure(sandbox=True)
1111

12-
# Temporary patch for the VCRHTTPResponse object to avoid
13-
# AttributeError: 'VCRHTTPResponse' object has no attribute 'version_string'
14-
# Occurs with urllib3>=2.3.0 and is being addressed in the following PR:
15-
# https://github.com/kevin1024/vcrpy/pull/889
16-
17-
18-
@pytest.fixture(autouse=True)
19-
def patch_VCRHTTPResponse_version_string():
20-
from vcr.stubs import VCRHTTPResponse # type: ignore
21-
22-
if not hasattr(VCRHTTPResponse, 'version_string'):
23-
VCRHTTPResponse.version_string = None
24-
yield
25-
2612

2713
@pytest.fixture(scope='module')
2814
def vcr_config():

0 commit comments

Comments
 (0)