Skip to content

Commit

Permalink
Merge pull request #51 from gisce/IMP_test_3_months_ago_add_C3
Browse files Browse the repository at this point in the history
IMP Add C3 on 3 months ago liquicomun test
  • Loading branch information
davidmunoznovoa committed Jun 19, 2023
2 parents 5fa2f80 + b245cf7 commit 9a178a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/archives_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def validate_P48cierre(xml):
expected_versions = ('A1', 'A2')
assert test_expected_to_work(the_class=self.e.liquicomun, start=start, end=end, expected_versions=expected_versions)

with it('should download C2 or A3 for 3 months ago'):
with it('should download C2, C3 or A3 for 3 months ago'):
today = self.today - timedelta(days=93)
start = datetime(today.year, today.month, 1)
last_month_day = calendar.monthrange(start.year, start.month)[1]
end = datetime(start.year, start.month, last_month_day)

expected_versions = ('A3', 'C2')
expected_versions = ('A3', 'C2', 'C3')
assert test_expected_to_work(the_class=self.e.liquicomun, start=start, end=end, expected_versions=expected_versions)

with it('should download C6 o C5 for a year ago'):
Expand Down

0 comments on commit 9a178a2

Please sign in to comment.