mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Change some URLs associated with subscriptions.
Put all the 'API'-ish URLs in the /json/ namespace so that /subscriptions and /subscriptions/add, etc. can be real user-facing URLs if we want them to be. (imported from commit 1455a32d27e44547ab1874b6289243cb40c85dde)
This commit is contained in:
@@ -94,8 +94,8 @@ class PublicURLTest(TestCase):
|
||||
"""
|
||||
urls = {200: ["/accounts/home/", "/accounts/login/", "/accounts/logout/",
|
||||
"/accounts/register/"],
|
||||
302: ["/", "/zephyr/", "/subscriptions/",
|
||||
"/subscriptions/remove", "/subscriptions/add"]
|
||||
302: ["/", "/zephyr/", "/json/subscriptions/list",
|
||||
"/json/subscriptions/remove", "/json/subscriptions/add"]
|
||||
}
|
||||
for status_code, url_set in urls.iteritems():
|
||||
self.fetch(url_set, status_code)
|
||||
|
||||
Reference in New Issue
Block a user