Commit 974eb800c7cab17442ccd6bf14a47770c36eb312

Authored by kosaniak
Committed by GitHub
2 parents 153799d6 112048b7

Merge pull request #755 from ivanka12/master

change generation deliveryDate and remove claim tags from argument files
... ... @@ -453,10 +453,11 @@ def test_item_data(cpv=None):
453 453 data["description"] = field_with_id("i", data["description"])
454 454 data["description_en"] = field_with_id("i", data["description_en"])
455 455 data["description_ru"] = field_with_id("i", data["description_ru"])
456   - days = 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 458 data["deliveryDate"] = {
458   - "startDate": (get_now() + timedelta(days=days)).astimezone(TZ).isoformat(),
459   - "endDate": (get_now() + timedelta(days=days)).astimezone(TZ).isoformat()
  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()
460 461 }
461 462 data["deliveryAddress"]["countryName_en"] = translate_country_en(data["deliveryAddress"]["countryName"])
462 463 data["deliveryAddress"]["countryName_ru"] = translate_country_ru(data["deliveryAddress"]["countryName"])
... ...
... ... @@ -42,16 +42,6 @@
42 42 -i modify_tender_after_questions
43 43 -i modify_lot_after_questions
44 44
45   --i create_tender_claim
46   - -i answer_tender_claim
47   - -i resolve_tender_claim
48   --i modify_tender_after_claim
49   -
50   --i create_lot_claim
51   - -i answer_lot_claim
52   - -i resolve_lot_claim
53   --i modify_lot_after_claim
54   -
55 45 -i make_bid_without_related_lot
56 46 -i make_bid_by_provider
57 47 -i add_doc_to_bid_by_provider
... ...
... ... @@ -40,16 +40,6 @@
40 40 -i modify_tender_after_questions
41 41 -i modify_lot_after_questions
42 42
43   --i create_tender_claim
44   - -i answer_tender_claim
45   - -i resolve_tender_claim
46   --i modify_tender_after_claim
47   -
48   --i create_lot_claim
49   - -i answer_lot_claim
50   - -i resolve_lot_claim
51   --i modify_lot_after_claim
52   -
53 43 -i make_bid_without_related_lot
54 44 -i make_bid_without_parameters
55 45 -i make_bid_by_provider
... ...
... ... @@ -42,12 +42,10 @@
42 42
43 43 -i create_tender_claim
44 44 -i answer_tender_claim
45   - -i resolve_tender_claim
46 45 -i modify_tender_after_claim
47 46
48 47 -i create_lot_claim
49 48 -i answer_lot_claim
50   - -i resolve_lot_claim
51 49 -i modify_lot_after_claim
52 50
53 51 -i make_bid_without_related_lot
... ...
... ... @@ -42,12 +42,10 @@
42 42
43 43 -i create_tender_claim
44 44 -i answer_tender_claim
45   - -i resolve_tender_claim
46 45 -i modify_tender_after_claim
47 46
48 47 -i create_lot_claim
49 48 -i answer_lot_claim
50   - -i resolve_lot_claim
51 49 -i modify_lot_after_claim
52 50
53 51 -i make_bid_without_related_lot
... ...
Please register or login to post a comment