Skip to content

Commit

Permalink
Use constant for renderer error
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiyVeretiuk committed Mar 28, 2018
1 parent c05763a commit bd9b775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openprocurement/auctions/flash/tests/blanks/bidder_blanks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from openprocurement.auctions.flash.tests.base import test_organization
from openprocurement.api.tests.base import JSON_RENDERER_ERROR

# AuctionBidderResourceTest

Expand Down Expand Up @@ -31,8 +32,7 @@ def create_auction_bidder_invalid(self):
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'No JSON object could be decoded',
u'location': u'body', u'name': u'data'}
JSON_RENDERER_ERROR
])

response = self.app.post_json(request_path, 'data', status=422)
Expand Down
4 changes: 2 additions & 2 deletions openprocurement/auctions/flash/tests/blanks/tender_blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from openprocurement.auctions.flash.models import Auction
from openprocurement.auctions.flash.tests.base import test_auction_data, test_organization
from openprocurement.api.tests.base import JSON_RENDERER_ERROR

# AuctionTest

Expand Down Expand Up @@ -62,8 +63,7 @@ def create_auction_invalid(self):
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'No JSON object could be decoded',
u'location': u'body', u'name': u'data'}
JSON_RENDERER_ERROR
])

response = self.app.post_json(request_path, 'data', status=422)
Expand Down

0 comments on commit bd9b775

Please sign in to comment.