Commit 0719bfb373cbfb325c2a3bd2575b993d27cdbd39
1 parent
05285c97
add validation for mpc for various tender types
Showing
1 changed file
with
6 additions
and
1 deletions
@@ -172,7 +172,6 @@ def test_tender_data(params, | @@ -172,7 +172,6 @@ def test_tender_data(params, | ||
172 | data = { | 172 | data = { |
173 | "mode": "test", | 173 | "mode": "test", |
174 | "submissionMethodDetails": submissionMethodDetails, | 174 | "submissionMethodDetails": submissionMethodDetails, |
175 | - "mainProcurementCategory": fake.random_element(('goods', 'services', 'works')), | ||
176 | "description": fake.description(), | 175 | "description": fake.description(), |
177 | "description_en": fake_en.sentence(nb_words=10, variable_nb_words=True), | 176 | "description_en": fake_en.sentence(nb_words=10, variable_nb_words=True), |
178 | "description_ru": fake_ru.sentence(nb_words=10, variable_nb_words=True), | 177 | "description_ru": fake_ru.sentence(nb_words=10, variable_nb_words=True), |
@@ -193,6 +192,12 @@ def test_tender_data(params, | @@ -193,6 +192,12 @@ def test_tender_data(params, | ||
193 | "items": [], | 192 | "items": [], |
194 | "features": [] | 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 | accelerator = accelerator \ | 201 | accelerator = accelerator \ |
197 | if accelerator else params['intervals']['accelerator'] | 202 | if accelerator else params['intervals']['accelerator'] |
198 | data['procurementMethodDetails'] = 'quick, ' \ | 203 | data['procurementMethodDetails'] = 'quick, ' \ |
Please
register
or
login
to post a comment