Commit 4206ad8336e80fed13fc426a123fe901fb2cff7e
Committed by
GitHub
Merge pull request #120 from ProzorroUKR/scale
CS-2447 add scale info
Showing
2 changed files
with
20 additions
and
17 deletions
... | ... | @@ -383,13 +383,13 @@ def test_feature_data(): |
383 | 383 | |
384 | 384 | |
385 | 385 | def test_question_data(): |
386 | - return munchify({ | |
387 | - "data": { | |
388 | - "author": fake.procuringTenderer(), | |
389 | - "description": fake.description(), | |
390 | - "title": field_with_id("q", fake.title()) | |
391 | - } | |
392 | - }) | |
386 | + data = { | |
387 | + "author": fake.procuringTenderer(), | |
388 | + "description": fake.description(), | |
389 | + "title": field_with_id("q", fake.title()) | |
390 | + } | |
391 | + del data['author']['scale'] | |
392 | + return munchify({'data': data}) | |
393 | 393 | |
394 | 394 | |
395 | 395 | def test_related_question(question, relation, obj_id): |
... | ... | @@ -406,14 +406,13 @@ def test_question_answer_data(): |
406 | 406 | |
407 | 407 | |
408 | 408 | def test_complaint_data(): |
409 | - data = munchify({ | |
410 | - "data": { | |
411 | - "author": fake.procuringTenderer(), | |
412 | - "description": fake.description(), | |
413 | - "title": fake.title() | |
414 | - } | |
415 | - }) | |
416 | - return data | |
409 | + data = { | |
410 | + "author": fake.procuringTenderer(), | |
411 | + "description": fake.description(), | |
412 | + "title": field_with_id("q", fake.title()) | |
413 | + } | |
414 | + del data['author']['scale'] | |
415 | + return munchify({'data': data}) | |
417 | 416 | |
418 | 417 | |
419 | 418 | test_claim_data = test_complaint_data |
... | ... | @@ -471,7 +470,7 @@ def test_bid_competitive_data(): |
471 | 470 | bid = munchify({ |
472 | 471 | "data": { |
473 | 472 | "tenderers": [ |
474 | - fake.procuringEntity() | |
473 | + fake.procuringTenderer() | |
475 | 474 | ] |
476 | 475 | } |
477 | 476 | }) |
... | ... | @@ -550,7 +549,7 @@ def test_supplier_data(): |
550 | 549 | return munchify({ |
551 | 550 | "data": { |
552 | 551 | "suppliers": [ |
553 | - fake.procuringEntity() | |
552 | + fake.procuringTenderer() | |
554 | 553 | ], |
555 | 554 | "value": { |
556 | 555 | "amount": fake.random_int(min=1), | ... | ... |
... | ... | @@ -739,6 +739,7 @@ |
739 | 739 | "id": "21725150", |
740 | 740 | "legalName": "Тестова районна в місті Києві державна адміністрація" |
741 | 741 | }, |
742 | + "scale": "micro", | |
742 | 743 | "name": "Тестова районна в місті Києві державна адміністрація", |
743 | 744 | "address": { |
744 | 745 | "postalCode": "01111", |
... | ... | @@ -761,6 +762,7 @@ |
761 | 762 | "id": "2833906462", |
762 | 763 | "legalName": "Тестовий ФОП 1" |
763 | 764 | }, |
765 | + "scale": "sme", | |
764 | 766 | "name": "Тестовий ФОП 1", |
765 | 767 | "address": { |
766 | 768 | "postalCode": "01111", |
... | ... | @@ -783,6 +785,7 @@ |
783 | 785 | "id": "2894905868", |
784 | 786 | "legalName": "Тестовий ФОП 2" |
785 | 787 | }, |
788 | + "scale": "mid", | |
786 | 789 | "name": "Тестовий ФОП 2", |
787 | 790 | "address": { |
788 | 791 | "postalCode": "04444", |
... | ... | @@ -805,6 +808,7 @@ |
805 | 808 | "id": "2854913619", |
806 | 809 | "legalName": "Тестовий ФОП 3" |
807 | 810 | }, |
811 | + "scale": "large", | |
808 | 812 | "name": "Тестовий ФОП 3", |
809 | 813 | "address": { |
810 | 814 | "postalCode": "01111", | ... | ... |
Please
register
or
login
to post a comment