diff --git a/spec/archives_spec.py b/spec/archives_spec.py index 1e57a99..47d2d10 100644 --- a/spec/archives_spec.py +++ b/spec/archives_spec.py @@ -264,7 +264,7 @@ def validate_P48cierre(xml): start = today.replace(hour=0, minute=0, second=0, microsecond=0) - relativedelta.relativedelta(days=1) end = today.replace(hour=23, minute=59, second=59, microsecond=0) - relativedelta.relativedelta(days=1) - res, headers = P48Cierre(self.e).download(start, end) + res = P48Cierre(self.e).download(start, end) assert validate_P48cierre(res) assert not validate_P48cierre(res + b'ERROR') @@ -274,7 +274,7 @@ def validate_P48cierre(xml): start = today.replace(hour=0, minute=0, second=0, microsecond=0) - relativedelta.relativedelta(days=1) end = today.replace(hour=23, minute=59, second=59, microsecond=0) - res, headers = P48Cierre(self.e).download(start, end) + res = P48Cierre(self.e).download(start, end) c = BytesIO(res) zf = zipfile.ZipFile(c) @@ -298,7 +298,7 @@ def validate_P48cierre(xml): last_month_day = calendar.monthrange(today.year, today.month)[1] end = datetime(today.year, today.month, today.day > 1 and today.day - 1 or 1) - res, headers = P48Cierre(self.e).download(start, end) + res = P48Cierre(self.e).download(start, end) c = BytesIO(res) zf = zipfile.ZipFile(c)