Skip to content

Commit 9192214

Browse files
committed
Correciones menores en client
1 parent aeb801b commit 9192214

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apigatewaycl/api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __check_and_return_response(self, response):
167167
})
168168
if self.version == 'v2':
169169
_original_json = response.json
170-
response.json = lambda: _original_json()['data']
170+
response.json = lambda: _original_json().get('data', _original_json())
171171
return response
172172

173173
def get(self, resource, headers = None):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
name='apigatewaycl',
3535

3636
# Versions should comply with PEP440
37-
version='5.4.0',
37+
version='5.4.1',
3838

3939
description='Cliente para realizar la integración con los servicios web de API Gateway desde Python.',
4040
long_description="\n"+long_description,

tests/sii/actividades/test_listar_actividades_economicas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestListarActividadesEconomicas(unittest.TestCase):
2727
@classmethod
2828
def setUpClass(cls):
2929
cls.verbose = bool(int(getenv('TEST_VERBOSE', 0)))
30-
cls.client = ActividadesEconomicas()
30+
cls.client = ActividadesEconomicas(version='v1')
3131

3232
def test_listar_actividades_economicas(self):
3333
try:

0 commit comments

Comments
 (0)