Commit 1f6fe1ab30ff73a5bbb20bc8cb93a19f326147c7

Authored by AlexDiatlov
1 parent 656df6f0

add payment test data generation

... ... @@ -1093,3 +1093,12 @@ def test_cancellation_data(procurement_method_type):
1093 1093 else:
1094 1094 result = random.choice(["noDemand", "unFixable", "forceMajeure", "expensesCut"])
1095 1095 return munchify({"reasonType": result})
  1096 +
  1097 +
  1098 +def test_24_hours_data():
  1099 + return munchify({
  1100 + "data": {
  1101 + "code": "24h",
  1102 + "description": create_fake_sentence()
  1103 + }
  1104 + })
... ...
... ... @@ -85,7 +85,8 @@ from .initial_data import (
85 85 test_reject_complaint_data,
86 86 test_cancellation_data,
87 87 test_cancel_pending_data,
88   - test_payment_data
  88 + test_payment_data,
  89 + test_24_hours_data
89 90 )
90 91 from barbecue import chef
91 92 from restkit import request
... ...
Please register or login to post a comment