Skip to content

Commit 9b71510

Browse files
committed
chore(django-rest-framework): upgrade to 3.9.3
1 parent 9b10c5e commit 9b71510

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

rootfs/api/exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from django.http import Http404
22
import logging
3-
from rest_framework.compat import set_rollback
43
from rest_framework.exceptions import APIException, status
54
from rest_framework.response import Response
6-
from rest_framework.views import exception_handler
5+
from rest_framework.views import set_rollback, exception_handler
76

87

98
class HealthcheckException(APIException):

rootfs/api/tests/test_pods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ def test_scale_errors(self, mock_requests):
399399
response = self.client.post(url, body)
400400
self.assertEqual(response.status_code, 400, response.data)
401401
self.assertEqual(response.data, {"detail": "Invalid scaling format: "
402-
"['Must be greater than or equal to zero']"})
402+
"[ErrorDetail(string='Must be greater "
403+
"than or equal to zero', code='invalid')]"})
403404

404405
# scale to something other than a number
405406
url = "/v2/apps/{app_id}/scale".format(**locals())

rootfs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ django==1.11.20
44
django-auth-ldap==1.2.15
55
django-cors-middleware==1.3.1
66
django-guardian==1.4.9
7-
djangorestframework==3.6.4
7+
djangorestframework==3.9.3
88
docker==3.7.2
99
gunicorn==19.9.0
1010
idna==2.6

0 commit comments

Comments
 (0)