Commit 7598e55c81de54d4d2ca46383a97698818deca27
Committed by
GitHub
Merge pull request #757 from ivanka12/master
update test_item_data
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -456,8 +456,8 @@ def test_item_data(cpv=None): |
456 | 456 | startDate = fake.random_int(min=1, max=30) |
457 | 457 | endDate = startDate + fake.random_int(min=1, max=7) |
458 | 458 | data["deliveryDate"] = { |
459 | - "startDate": (get_now() + timedelta(days=startDate)).replace(hour=0, minute=0, second=0, microsecond=0).isoformat(), | |
460 | - "endDate": (get_now() + timedelta(days=endDate)).replace(hour=0, minute=0, second=0, microsecond=0).isoformat() | |
459 | + "startDate": (get_now() + timedelta(days=startDate)).astimezone(TZ).replace(hour=0, minute=0, second=0, microsecond=0).isoformat(), | |
460 | + "endDate": (get_now() + timedelta(days=endDate)).astimezone(TZ).replace(hour=0, minute=0, second=0, microsecond=0).isoformat() | |
461 | 461 | } |
462 | 462 | data["deliveryAddress"]["countryName_en"] = translate_country_en(data["deliveryAddress"]["countryName"]) |
463 | 463 | data["deliveryAddress"]["countryName_ru"] = translate_country_ru(data["deliveryAddress"]["countryName"]) | ... | ... |
Please
register
or
login
to post a comment