Replace /json/get_old_messages with REST style route.

This commit is contained in:
Ashish
2016-04-02 01:25:17 +05:30
committed by Tim Abbott
parent 8fc8717409
commit cb8da46bbf
4 changed files with 11 additions and 11 deletions

View File

@@ -281,7 +281,7 @@ class AuthedTestCase(TestCase):
def get_old_messages(self, anchor=1, num_before=100, num_after=100):
post_params = {"anchor": anchor, "num_before": num_before,
"num_after": num_after}
result = self.client.post("/json/get_old_messages", dict(post_params))
result = self.client.get("/json/messages", dict(post_params))
data = ujson.loads(result.content)
return data['messages']