Skip to content

Commit 8f8f2b5

Browse files
author
Keerthan Mala
committed
add unit test
1 parent 0bcea13 commit 8f8f2b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/api/tests/test_pods.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ def test_scale_errors(self, mock_requests):
415415
body = {'web': -1}
416416
response = self.client.post(url, body)
417417
self.assertEqual(response.status_code, 400, response.data)
418+
self.assertEqual(response.data, {"detail": "Invalid scaling format: "
419+
"['Must be greater than or equal to zero']"})
418420

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

0 commit comments

Comments
 (0)