From 0bf1a7f57a5d6fde0a7f3618d6ad03a4070be80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emili=20Garc=C3=ADa?= Date: Tue, 12 Dec 2023 10:49:28 +0100 Subject: [PATCH] Fixes tests --- spec/archives_spec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)