Commit adb06a43f40e553202b502637c70404fef4f5311

Authored by ivanka12
1 parent 974eb800

update test_item_data

@@ -456,8 +456,8 @@ def test_item_data(cpv=None): @@ -456,8 +456,8 @@ def test_item_data(cpv=None):
456 startDate = fake.random_int(min=1, max=30) 456 startDate = fake.random_int(min=1, max=30)
457 endDate = startDate + fake.random_int(min=1, max=7) 457 endDate = startDate + fake.random_int(min=1, max=7)
458 data["deliveryDate"] = { 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 data["deliveryAddress"]["countryName_en"] = translate_country_en(data["deliveryAddress"]["countryName"]) 462 data["deliveryAddress"]["countryName_en"] = translate_country_en(data["deliveryAddress"]["countryName"])
463 data["deliveryAddress"]["countryName_ru"] = translate_country_ru(data["deliveryAddress"]["countryName"]) 463 data["deliveryAddress"]["countryName_ru"] = translate_country_ru(data["deliveryAddress"]["countryName"])
Please register or login to post a comment