Skip to content

Commit

Permalink
Procuring entity kind (field) not required
Browse files Browse the repository at this point in the history
  • Loading branch information
karmagood committed Aug 18, 2016
1 parent c40528d commit c9c842e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openprocurement/auctions/flash/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def __local_roles__(self):

create_accreditation = 1
edit_accreditation = 2
procuring_entity_kinds = ['general', 'special', 'defense', 'other']
procuring_entity_kinds = ['general', 'special', 'defense', 'other', '']
block_complaint_status = ['claim', 'answered', 'pending']

__name__ = ''
Expand Down
9 changes: 3 additions & 6 deletions openprocurement/auctions/flash/tests/tender.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,11 @@ def test_create_auction_invalid(self):
data = test_auction_data["procuringEntity"].copy()
del data['kind']
test_auction_data["procuringEntity"] = data
response = self.app.post_json(request_path, {'data': test_auction_data}, status=403)
response = self.app.post_json(request_path, {'data': test_auction_data}, status=201)
test_auction_data["procuringEntity"] = procuringEntity
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u"'' procuringEntity cannot publish this type of procedure. Only general, special, defense, other are allowed.", u'location': u'procuringEntity', u'name': u'kind'}
])


def test_create_auction_generated(self):
data = test_auction_data.copy()
Expand Down

0 comments on commit c9c842e

Please sign in to comment.