api: add dash to check-api-client endpoint (#68276)
This commit is contained in:
parent
69ce4d6261
commit
f42905982f
|
@ -53,7 +53,7 @@ urlpatterns = [
|
|||
name='a2-api-role-parents-relationships',
|
||||
),
|
||||
url(r'^check-password/$', api_views.check_password, name='a2-api-check-password'),
|
||||
url(r'^check-apiclient/$', api_views.check_apiclient, name='a2-api-check-apiclient'),
|
||||
url(r'^check-api-client/$', api_views.check_api_client, name='a2-api-check-api-client'),
|
||||
url(r'^validate-password/$', api_views.validate_password, name='a2-api-validate-password'),
|
||||
url(r'^address-autocomplete/$', api_views.address_autocomplete, name='a2-api-address-autocomplete'),
|
||||
]
|
||||
|
|
|
@ -1443,7 +1443,7 @@ class CheckAPIClientAPI(BaseRpcView):
|
|||
return result, status.HTTP_200_OK
|
||||
|
||||
|
||||
check_apiclient = CheckAPIClientAPI.as_view()
|
||||
check_api_client = CheckAPIClientAPI.as_view()
|
||||
|
||||
|
||||
class CsrfExemptSessionAuthentication(SessionAuthentication):
|
||||
|
|
|
@ -2883,8 +2883,8 @@ def test_user_profile_delete(app, superuser):
|
|||
)
|
||||
|
||||
|
||||
def test_check_apiclient(app, superuser):
|
||||
url = '/api/check-apiclient/'
|
||||
def test_check_api_client(app, superuser):
|
||||
url = '/api/check-api-client/'
|
||||
payload = {'identifier': 'foo', 'password': 'bar'}
|
||||
resp = app.post_json(url, params=payload, status=401)
|
||||
|
||||
|
|
Loading…
Reference in New Issue