@@ -39,7 +39,7 @@ def test_internal_endpoint(self):
39
39
params = {
40
40
'alert_words' : ujson .dumps (['milk' , 'cookies' ])
41
41
}
42
- result = self .client_put ('/json/users/me/alert_words' , params )
42
+ result = self .client_post ('/json/users/me/alert_words' , params )
43
43
self .assert_json_success (result )
44
44
user = self .example_user (user_name )
45
45
words = user_alert_words (user )
@@ -119,7 +119,7 @@ def test_json_list_add(self):
119
119
# type: () -> None
120
120
self .login (self .example_email ("hamlet" ))
121
121
122
- result = self .client_put ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one ' , '\n two' , 'three' ])})
122
+ result = self .client_post ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one ' , '\n two' , 'three' ])})
123
123
self .assert_json_success (result )
124
124
125
125
result = self .client_get ('/json/users/me/alert_words' )
@@ -130,7 +130,7 @@ def test_json_list_remove(self):
130
130
# type: () -> None
131
131
self .login (self .example_email ("hamlet" ))
132
132
133
- result = self .client_put ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one' , 'two' , 'three' ])})
133
+ result = self .client_post ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one' , 'two' , 'three' ])})
134
134
self .assert_json_success (result )
135
135
136
136
result = self .client_delete ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one' ])})
@@ -152,7 +152,7 @@ def test_alert_flags(self):
152
152
self .login (self .example_email ("hamlet" ))
153
153
user_profile_hamlet = self .example_user ('hamlet' )
154
154
155
- result = self .client_put ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one' , 'two' , 'three' ])})
155
+ result = self .client_post ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['one' , 'two' , 'three' ])})
156
156
self .assert_json_success (result )
157
157
158
158
result = self .client_get ('/json/users/me/alert_words' )
@@ -184,7 +184,7 @@ def test_update_alert_words(self):
184
184
me_email = user_profile .email
185
185
186
186
self .login (me_email )
187
- result = self .client_put ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['ALERT' ])})
187
+ result = self .client_post ('/json/users/me/alert_words' , {'alert_words' : ujson .dumps (['ALERT' ])})
188
188
189
189
content = 'this is an ALERT for you'
190
190
self .send_message (me_email , "Denmark" , Recipient .STREAM , content )
0 commit comments