Commit 7fa1ea997bdba28f742a2aee14cb78ce63469eee
1 parent
336f4c5a
Provide 8-digit UA-EDR identifier
Correct EDRPOU code must have exactly eight digits.
Showing
1 changed file
with
4 additions
and
4 deletions
| ... | ... | @@ -33,7 +33,7 @@ def test_tender_data(intervals): |
| 33 | 33 | "name_en": fake_en.company(), |
| 34 | 34 | "identifier": { |
| 35 | 35 | "scheme": u"UA-EDR", |
| 36 | - "id": u"0000{}".format(fake.pyint()), | |
| 36 | + "id": u"{:08d}".format(fake.pyint()), | |
| 37 | 37 | "uri": fake.image_url(width=None, height=None) |
| 38 | 38 | }, |
| 39 | 39 | "address": { |
| ... | ... | @@ -302,7 +302,7 @@ def test_question_data(): |
| 302 | 302 | }, |
| 303 | 303 | "identifier": { |
| 304 | 304 | "scheme": u"UA-EDR", |
| 305 | - "id": u"0000{}".format(fake.pyint()), | |
| 305 | + "id": u"{:08d}".format(fake.pyint()), | |
| 306 | 306 | "uri": fake.image_url(width=None, height=None) |
| 307 | 307 | }, |
| 308 | 308 | "name": fake.company() |
| ... | ... | @@ -340,7 +340,7 @@ def test_complaint_data(): |
| 340 | 340 | }, |
| 341 | 341 | "identifier": { |
| 342 | 342 | "scheme": u"UA-EDR", |
| 343 | - "id": u"0000{}".format(fake.pyint()), | |
| 343 | + "id": u"{:08d}".format(fake.pyint()), | |
| 344 | 344 | "uri": fake.image_url(width=None, height=None) |
| 345 | 345 | }, |
| 346 | 346 | "name": fake.company() |
| ... | ... | @@ -379,7 +379,7 @@ def test_bid_data(): |
| 379 | 379 | }, |
| 380 | 380 | "identifier": { |
| 381 | 381 | "scheme": u"UA-EDR", |
| 382 | - "id": u"0000{}".format(fake.pyint()), | |
| 382 | + "id": u"{:08d}".format(fake.pyint()), | |
| 383 | 383 | }, |
| 384 | 384 | "name": fake.company() |
| 385 | 385 | } |
| ... | ... |
Please
register
or
login
to post a comment