@@ -24,15 +24,15 @@ class QuickStartUser(SequentialTaskSet):
2424 def captcha (self ):
2525 captcha_params = {"level" :"debug" ,"media" :"image/png" ,"input_type" :"text" , "size" :"350x100" }
2626
27- with self .client .post (path = "/v2/captcha" , json = captcha_params , name = "/captcha" , catch_response = True ) as resp :
27+ with self .client .post (url = "/v2/captcha" , json = captcha_params , name = "/captcha" , catch_response = True ) as resp :
2828 if resp .status_code != 200 :
2929 resp .failure ("Status was not 200: " + resp .text )
3030 captchaJson = resp .json ()
3131 uuid = captchaJson .get ("id" )
3232 if not uuid :
3333 resp .failure ("uuid not returned on /captcha endpoint: " + resp .text )
3434
35- with self .client .get (path = "/v2/media?id=%s" % uuid , name = "/media" , stream = True , catch_response = True ) as resp :
35+ with self .client .get (url = "/v2/media?id=%s" % uuid , name = "/media" , stream = True , catch_response = True ) as resp :
3636 if resp .status_code != 200 :
3737 resp .failure ("Status was not 200: " + resp .text )
3838
@@ -41,7 +41,7 @@ def captcha(self):
4141 ocrAnswer = self .solve (uuid , media )
4242
4343 answerBody = {"answer" : ocrAnswer ,"id" : uuid }
44- with self .client .post (path = '/v2/answer' , json = answerBody , name = "/answer" , catch_response = True ) as resp :
44+ with self .client .post (url = '/v2/answer' , json = answerBody , name = "/answer" , catch_response = True ) as resp :
4545 if resp .status_code != 200 :
4646 resp .failure ("Status was not 200: " + resp .text )
4747 else :
0 commit comments