Showing
1 changed file
with
9 additions
and
3 deletions
| @@ -197,9 +197,8 @@ def test_tender_data(params, | @@ -197,9 +197,8 @@ def test_tender_data(params, | ||
| 197 | "items": [], | 197 | "items": [], |
| 198 | "features": [] | 198 | "features": [] |
| 199 | } | 199 | } |
| 200 | - if params.get("mode") in ["belowThreshold", "aboveThresholdUA", "aboveThresholdEU", "esco"]: | ||
| 201 | - data["guarantee"]["amount"] = value_amount * 0.75 | ||
| 202 | - data["guarantee"]["currency"] = u"UAH" | 200 | + if params.get("mode") in ["belowThreshold", "openua", "openeu", "esco"]: |
| 201 | + data["guarantee"] = test_data_guarantee(value_amount) | ||
| 203 | if params.get("mode") == "open_framework": | 202 | if params.get("mode") == "open_framework": |
| 204 | data["mainProcurementCategory"] = random.choice(['goods', 'services']) | 203 | data["mainProcurementCategory"] = random.choice(['goods', 'services']) |
| 205 | elif params.get("mode") == "open_competitive_dialogue": | 204 | elif params.get("mode") == "open_competitive_dialogue": |
| @@ -1276,6 +1275,13 @@ def test_criteria_guarantee_data(): | @@ -1276,6 +1275,13 @@ def test_criteria_guarantee_data(): | ||
| 1276 | }) | 1275 | }) |
| 1277 | 1276 | ||
| 1278 | 1277 | ||
| 1278 | +def test_data_guarantee(value_amount): | ||
| 1279 | + return munchify({ | ||
| 1280 | + "amount": value_amount * 0.75, | ||
| 1281 | + "currency": u"UAH" | ||
| 1282 | + }) | ||
| 1283 | + | ||
| 1284 | + | ||
| 1279 | def test_data_bid_criteria(): | 1285 | def test_data_bid_criteria(): |
| 1280 | bid = munchify({ | 1286 | bid = munchify({ |
| 1281 | "data": [] | 1287 | "data": [] |
Please
register
or
login
to post a comment