Thomas Johansson avatar Thomas Johansson committed 4f05ab4

Update tests to use the included OAuth url patterns.

Comments (0)

Files changed (2)


 class OAuthTests(MainTests):
     signature_method = oauth.SignatureMethod_HMAC_SHA1()
     callback_url = ''
-    request_token_url = 'http://testserver/api/oauth/request_token'
-    authorize_url = 'http://testserver/api/oauth/authorize'
-    access_token_url = 'http://testserver/api/oauth/access_token'
+    request_token_url = 'http://testserver/api/oauth/get_request_token'
+    authorize_url = 'http://testserver/api/oauth/authorize_request_token'
+    access_token_url = 'http://testserver/api/oauth/get_access_token'
     api_access_url = 'http://testserver/api/oauth/api_access'
     def setUp(self):


     url(r'^multiauth/$', multiauth),
-    # oauth entrypoints
-    url(r'^oauth/request_token$', 'piston.authentication.oauth.views.get_request_token'),
-    url(r'^oauth/authorize$', 'piston.authentication.oauth.views.authorize_request_token'),
-    url(r'^oauth/access_token$', 'piston.authentication.oauth.views.get_access_token'),
+    # OAuth
+    url(r'^oauth/', include('piston.authentication.oauth.urls')),
     url(r'^oauth/api_access$', ouath_access),
     url(r'^list_fields$', list_fields),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.