Skip to content

Commit

Permalink
Merge pull request #34 from gorserg/freeze_features
Browse files Browse the repository at this point in the history
Заборона змінювати нецінові показники
  • Loading branch information
kroman0 committed Jul 25, 2016
2 parents 6d25733 + f33b532 commit 30fc7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion openprocurement/tender/competitivedialogue/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Options:
LotStage2 = Lot

hide_dialogue_token = blacklist('dialogue_token')
close_edit_technical_fields = blacklist('dialogue_token', 'shortlistedFirms', 'dialogueID', 'value')
close_edit_technical_fields = blacklist('dialogue_token', 'shortlistedFirms', 'dialogueID', 'value', 'features')


stage_2_roles = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,17 +848,12 @@ def test_tender_features(self):
}, {}, {}]}})
self.assertEqual(response.status, '200 OK')
self.assertIn('features', response.json['data'])
self.assertNotIn('relatedItem', response.json['data']['features'][0])

# response = self.app.patch_json('/tenders/{}?acc_token={}'.format(tender['id'], token),
# {'data': {'tenderPeriod': {'startDate': None}}})
# self.assertEqual(response.status, '200 OK')
# self.assertIn('features', response.json['data'])
self.assertIn('relatedItem', response.json['data']['features'][0])

response = self.app.patch_json('/tenders/{}?acc_token={}'.format(tender['id'], token),
{'data': {'features': []}})
self.assertEqual(response.status, '200 OK')
self.assertNotIn('features', response.json['data'])
self.assertIn('features', response.json['data'])

def test_patch_tender(self):
self.app.authorization = ('Basic', ('competitive_dialogue', ''))
Expand Down

0 comments on commit 30fc7ba

Please sign in to comment.