Commit a707a1bf66b03e93a3f2a76461a465159dbc3405

Authored by alexdiatlov
Committed by GitHub
2 parents 3048356f 0719bfb3

Merge pull request #124 from ProzorroUKR/mpc_validation

CS-824 Mpc validation
... ... @@ -172,7 +172,6 @@ def test_tender_data(params,
172 172 data = {
173 173 "mode": "test",
174 174 "submissionMethodDetails": submissionMethodDetails,
175   - "mainProcurementCategory": fake.random_element(('goods', 'services', 'works')),
176 175 "description": fake.description(),
177 176 "description_en": fake_en.sentence(nb_words=10, variable_nb_words=True),
178 177 "description_ru": fake_ru.sentence(nb_words=10, variable_nb_words=True),
... ... @@ -193,6 +192,12 @@ def test_tender_data(params,
193 192 "items": [],
194 193 "features": []
195 194 }
  195 + if params.get("mode") == "open_framework":
  196 + data["mainProcurementCategory"] = random.choice(['goods', 'services'])
  197 + elif params.get("mode") == "open_competitive_dialogue":
  198 + data["mainProcurementCategory"] = random.choice(['services', 'works'])
  199 + else:
  200 + data["mainProcurementCategory"] = random.choice(['goods', 'services', 'works'])
196 201 accelerator = accelerator \
197 202 if accelerator else params['intervals']['accelerator']
198 203 data['procurementMethodDetails'] = 'quick, ' \
... ...
Please register or login to post a comment