Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egarciadiaz committed Dec 12, 2023
1 parent a66b992 commit 0bf1a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/archives_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 0bf1a7f

Please sign in to comment.