Showing
1 changed file
with
3 additions
and
10 deletions
@@ -153,12 +153,8 @@ def create_fake_doc(): | @@ -153,12 +153,8 @@ def create_fake_doc(): | ||
153 | 153 | ||
154 | 154 | ||
155 | def create_fake_IsoDurationType( | 155 | def create_fake_IsoDurationType( |
156 | - years=0, months=0, days=0, | ||
157 | - hours=0, minutes=0, seconds=0): | ||
158 | - return u"P{}Y{}M{}DT{}H{}M{}S".format( | ||
159 | - years, months, days, | ||
160 | - hours, minutes, seconds | ||
161 | - ) | 156 | + years=0, months=0, days=0): |
157 | + return u"P{}Y{}M{}D".format(years, months, days) | ||
162 | 158 | ||
163 | 159 | ||
164 | def test_tender_data(params, | 160 | def test_tender_data(params, |
@@ -708,10 +704,7 @@ def test_tender_data_framework_agreement(params, submissionMethodDetails, plan_d | @@ -708,10 +704,7 @@ def test_tender_data_framework_agreement(params, submissionMethodDetails, plan_d | ||
708 | data['agreementDuration'] = create_fake_IsoDurationType( | 704 | data['agreementDuration'] = create_fake_IsoDurationType( |
709 | years=fake.random_int(min=1, max=3), | 705 | years=fake.random_int(min=1, max=3), |
710 | months=fake.random_int(min=1, max=8), | 706 | months=fake.random_int(min=1, max=8), |
711 | - days=fake.random_int(min=1, max=6), | ||
712 | - hours=fake.random_int(min=1, max=20), | ||
713 | - minutes=fake.random_int(min=1, max=50), | ||
714 | - seconds=fake.random_int(min=1, max=50) | 707 | + days=fake.random_int(min=1, max=6) |
715 | ) | 708 | ) |
716 | return data | 709 | return data |
717 | 710 |
Please
register
or
login
to post a comment