Commit dd9caf9d487b7abcf5c3d47b2abc9860ff26541d
1 parent
bab40975
Update test_tender_data_limited
In order to add required fields in API v. 2.1 to negotiation and negotiation.quick procurements
Showing
1 changed file
with
22 additions
and
2 deletions
... | ... | @@ -189,10 +189,30 @@ def test_tender_data_limited(intervals, procurement_method_type): |
189 | 189 | "currency": "UAH", |
190 | 190 | "valueAddedTaxIncluded": True |
191 | 191 | }, |
192 | + "description": fake.sentence(nb_words=10, variable_nb_words=True), | |
192 | 193 | "title": u"Послуги шкільних їдалень", |
193 | 194 | } |
194 | - if procurement_method_type == "negotiation" or procurement_method_type == "negotiation.quick": | |
195 | - data.update({"procurementMethodDetails": "quick, accelerator=1440"}) | |
195 | + if procurement_method_type == "negotiation": | |
196 | + cause_variants = ( | |
197 | + "artContestIP", | |
198 | + "noCompetition", | |
199 | + "twiceUnsuccessful", | |
200 | + "additionalPurchase", | |
201 | + "additionalConstruction", | |
202 | + "stateLegalServices" | |
203 | + ) | |
204 | + cause = fake.random_element(cause_variants) | |
205 | + data.update({"cause": cause}) | |
206 | + if procurement_method_type == "negotiation.quick": | |
207 | + cause_variants = ('quick',) | |
208 | + cause = fake.random_element(cause_variants) | |
209 | + data.update({"cause": cause}) | |
210 | + if procurement_method_type == "negotiation" \ | |
211 | + or procurement_method_type == "negotiation.quick": | |
212 | + data.update({ | |
213 | + "procurementMethodDetails": "quick, accelerator=1440", | |
214 | + "causeDescription": fake.sentence(nb_words=10, variable_nb_words=True) | |
215 | + }) | |
196 | 216 | return data |
197 | 217 | |
198 | 218 | ... | ... |
Please
register
or
login
to post a comment