@@ -49,10 +49,10 @@ def test_container_api_heroku(self, mock_requests):
4949 body = {
5050 'image' : 'autotest/example' ,
5151 'sha' : 'a' * 40 ,
52- 'procfile' : json . dumps ( {
52+ 'procfile' : {
5353 'web' : 'node server.js' ,
5454 'worker' : 'node worker.js'
55- })
55+ }
5656 }
5757 response = self .client .post (url , body )
5858 self .assertEqual (response .status_code , 201 , response .data )
@@ -211,10 +211,10 @@ def test_release(self, mock_requests):
211211 body = {
212212 'image' : 'autotest/example' ,
213213 'sha' : 'a' * 40 ,
214- 'procfile' : json . dumps ( {
214+ 'procfile' : {
215215 'web' : 'node server.js' ,
216216 'worker' : 'node worker.js'
217- })
217+ }
218218 }
219219 response = self .client .post (url , body )
220220 self .assertEqual (response .status_code , 201 , response .data )
@@ -298,10 +298,10 @@ def test_container_str(self, mock_requests):
298298 body = {
299299 'image' : 'autotest/example' ,
300300 'sha' : 'a' * 40 ,
301- 'procfile' : json . dumps ( {
301+ 'procfile' : {
302302 'web' : 'node server.js' ,
303303 'worker' : 'node worker.js'
304- })
304+ }
305305 }
306306 response = self .client .post (url , body )
307307 self .assertEqual (response .status_code , 201 , response .data )
@@ -333,10 +333,10 @@ def test_pod_command_format(self, mock_requests):
333333 body = {
334334 'image' : 'autotest/example' ,
335335 'sha' : 'a' * 40 ,
336- 'procfile' : json . dumps ( {
336+ 'procfile' : {
337337 'web' : 'node server.js' ,
338338 'worker' : 'node worker.js'
339- })
339+ }
340340 }
341341 response = self .client .post (url , body )
342342 self .assertEqual (response .status_code , 201 , response .data )
@@ -377,10 +377,10 @@ def test_scale_errors(self, mock_requests):
377377 body = {
378378 'image' : 'autotest/example' ,
379379 'sha' : 'a' * 40 ,
380- 'procfile' : json . dumps ( {
380+ 'procfile' : {
381381 'web' : 'node server.js' ,
382382 'worker' : 'node worker.js'
383- })
383+ }
384384 }
385385 response = self .client .post (url , body )
386386 self .assertEqual (response .status_code , 201 , response .data )
@@ -438,10 +438,10 @@ def test_admin_can_manage_other_pods(self, mock_requests):
438438 body = {
439439 'image' : 'autotest/example' ,
440440 'sha' : 'a' * 40 ,
441- 'procfile' : json . dumps ( {
441+ 'procfile' : {
442442 'web' : 'node server.js' ,
443443 'worker' : 'node worker.js'
444- })
444+ }
445445 }
446446 response = self .client .post (url , body )
447447 self .assertEqual (response .status_code , 201 , response .data )
@@ -675,7 +675,7 @@ def test_scale_with_unauthorized_user_returns_403(self, mock_requests):
675675 body = {
676676 'image' : 'autotest/example' ,
677677 'sha' : 'a' * 40 ,
678- 'procfile' : json . dumps ( {'web' : 'node server.js' , 'worker' : 'node worker.js' })
678+ 'procfile' : {'web' : 'node server.js' , 'worker' : 'node worker.js' }
679679 }
680680 response = self .client .post (url , body )
681681 unauthorized_user = User .objects .get (username = 'autotest2' )
@@ -700,10 +700,10 @@ def test_modified_procfile_from_build_removes_pods(self, mock_requests):
700700 body = {
701701 'image' : 'autotest/example' ,
702702 'sha' : 'a' * 40 ,
703- 'procfile' : json . dumps ( {
703+ 'procfile' : {
704704 'web' : 'node server.js' ,
705705 'worker' : 'node worker.js'
706- })
706+ }
707707 }
708708 response = self .client .post (build_url , body )
709709
@@ -715,9 +715,9 @@ def test_modified_procfile_from_build_removes_pods(self, mock_requests):
715715 body = {
716716 'image' : 'autotest/example' ,
717717 'sha' : 'a' * 40 ,
718- 'procfile' : json . dumps ( {
718+ 'procfile' : {
719719 'worker' : 'node worker.js'
720- })
720+ }
721721 }
722722 response = self .client .post (build_url , body )
723723 self .assertEqual (response .status_code , 201 , response .data )
@@ -735,10 +735,10 @@ def test_restart_pods(self, mock_requests):
735735 body = {
736736 'image' : 'autotest/example' ,
737737 'sha' : 'a' * 40 ,
738- 'procfile' : json . dumps ( {
738+ 'procfile' : {
739739 'web' : 'node server.js' ,
740740 'worker' : 'node worker.js'
741- })
741+ }
742742 }
743743 response = self .client .post (build_url , body )
744744
0 commit comments