Skip to content

Commit

Permalink
chore(django-rest-framework): upgrade to 3.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhongyi committed May 27, 2019
1 parent 3aef260 commit 83bd863
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rootfs/api/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from django.http import Http404
import logging
from rest_framework.compat import set_rollback
from rest_framework.exceptions import APIException, status
from rest_framework.response import Response
from rest_framework.views import exception_handler
from rest_framework.views import set_rollback, exception_handler


class HealthcheckException(APIException):
Expand Down
3 changes: 2 additions & 1 deletion rootfs/api/tests/test_pods.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def test_scale_errors(self, mock_requests):
response = self.client.post(url, body)
self.assertEqual(response.status_code, 400, response.data)
self.assertEqual(response.data, {"detail": "Invalid scaling format: "
"['Must be greater than or equal to zero']"})
"[ErrorDetail(string='Must be greater "
"than or equal to zero', code='invalid')]"})

# scale to something other than a number
url = "/v2/apps/{app_id}/scale".format(**locals())
Expand Down
2 changes: 1 addition & 1 deletion rootfs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ django==1.11.20
django-auth-ldap==1.2.15
django-cors-middleware==1.3.1
django-guardian==1.4.9
djangorestframework==3.6.4
djangorestframework==3.9.3
docker-py==1.10.6
gunicorn==19.7.1
idna==2.6
Expand Down

0 comments on commit 83bd863

Please sign in to comment.