#NEWLINE# def test_custom_params( self ) : #NEWLINE# #INDENT# resp = self . client . post ( self . path , data = { #NEWLINE# #INDENT# 'env' : 'production' , #NEWLINE# 'app' : self . app . name , #NEWLINE# 'ref' : 'master' , #NEWLINE# 'user' : self . user . name , #NEWLINE# 'params' : '{"task": "collectstatic"}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( resp . status_code == 201 ) #NEWLINE# data = json . loads ( resp . data ) #NEWLINE# assert data [ 'id' ] #NEWLINE# deploy = Deploy . query . get ( data [ 'id' ] ) #NEWLINE# task = Task . query . get ( deploy . task_id ) #NEWLINE# assert ( deploy . environment == 'production' ) #NEWLINE# assert ( deploy . app_id == self . app . id ) #NEWLINE# assert ( task . app_id == self . app . id ) #NEWLINE# assert ( task . ref == 'master' ) #NEWLINE# assert ( task . user_id == self . user . id ) #NEWLINE# assert ( task . provider_config == self . deploy_config . provider_config ) #NEWLINE# assert ( resp . notifiers == self . deploy_config . notifiers ) #NEWLINE# assert ( task . params == { #NEWLINE# #INDENT# 'task' : 'collectstatic' , #NEWLINE# #UNINDENT# } )