Commit 7fa1ea997bdba28f742a2aee14cb78ce63469eee

Authored by selurvedu
1 parent 336f4c5a

Provide 8-digit UA-EDR identifier

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