Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use constant for renderer error #46

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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