Skip to content

Commit

Permalink
Fixed status page
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Jul 21, 2016
1 parent ed01452 commit 2e9209f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions openprocurement/documentservice/tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ class SimpleTest(BaseWebTest):

def test_root(self):
response = self.app.get('/')
self.assertEqual(response.status, '204 No Content')
self.assertEqual(response.content_type, 'text/html')
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'text/plain')
self.assertEqual(response.body, '')

def test_register_get(self):
response = self.app.get('/register', status=404)
Expand Down
4 changes: 2 additions & 2 deletions openprocurement/documentservice/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
EXPIRES = 300


@view_config(route_name='status')
@view_config(route_name='status', renderer='string')
def status_view(request):
return HTTPNoContent()
return ''


@view_config(route_name='register', renderer='json', request_method='POST', permission='upload')
Expand Down

0 comments on commit 2e9209f

Please sign in to comment.