diff options
| author | jonathan vanasco <jonathan@2xlp.com> | 2018-09-14 19:08:56 -0400 |
|---|---|---|
| committer | jonathan vanasco <jonathan@2xlp.com> | 2018-09-14 19:08:56 -0400 |
| commit | c8fcbf87ca38faa4dfbe56d0609a4ce15c2d7aca (patch) | |
| tree | f7a46fbdbb4565857efd8973f7915a5df8f67fc5 | |
| parent | e4658e048ac2b2126b56c41e0494cd17607ea190 (diff) | |
| download | oauthlib-c8fcbf87ca38faa4dfbe56d0609a4ce15c2d7aca.tar.gz | |
standardized some test values
integrated against requests_oauthlib idea
| -rw-r--r-- | oauthlib/oauth2/rfc6749/parameters.py | 2 | ||||
| -rw-r--r-- | tests/oauth2/rfc6749/clients/test_legacy_application.py | 4 | ||||
| -rw-r--r-- | tests/oauth2/rfc6749/clients/test_web_application.py | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/oauthlib/oauth2/rfc6749/parameters.py b/oauthlib/oauth2/rfc6749/parameters.py index 2b6e854..1229f31 100644 --- a/oauthlib/oauth2/rfc6749/parameters.py +++ b/oauthlib/oauth2/rfc6749/parameters.py @@ -146,7 +146,7 @@ def prepare_token_revocation_request(url, token, token_type_hint="access_token", token types. An authorization server MAY ignore this parameter, particularly if it is able to detect the token type automatically. - + This specification defines two values for `token_type_hint`: * access_token: An access token as defined in [RFC6749], diff --git a/tests/oauth2/rfc6749/clients/test_legacy_application.py b/tests/oauth2/rfc6749/clients/test_legacy_application.py index 3f97c02..1e11112 100644 --- a/tests/oauth2/rfc6749/clients/test_legacy_application.py +++ b/tests/oauth2/rfc6749/clients/test_legacy_application.py @@ -21,8 +21,8 @@ class LegacyApplicationClientTest(TestCase): "require": "extra arguments" } - username = "foo" - password = "bar" + username = "user_username" + password = "user_password" body = "not=empty" body_up = "not=empty&grant_type=password&username=%s&password=%s" % (username, password) diff --git a/tests/oauth2/rfc6749/clients/test_web_application.py b/tests/oauth2/rfc6749/clients/test_web_application.py index 702fcf2..9144659 100644 --- a/tests/oauth2/rfc6749/clients/test_web_application.py +++ b/tests/oauth2/rfc6749/clients/test_web_application.py @@ -204,13 +204,13 @@ class WebApplicationClientTest(TestCase): # scenario 3, Include client_id and client_secret in the body (RFC alternative solution) # the order of kwargs being appended is not guaranteed. for brevity, check the 2 permutations instead of sorting - r3 = client.prepare_request_body(client_secret='secret') - self.assertIn(r3, ('grant_type=authorization_code&client_secret=secret&client_id=someclientid', - 'grant_type=authorization_code&client_id=someclientid&client_secret=secret',) + r3 = client.prepare_request_body(client_secret='someclientsecret') + self.assertIn(r3, ('grant_type=authorization_code&client_secret=someclientsecret&client_id=someclientid', + 'grant_type=authorization_code&client_id=someclientid&client_secret=someclientsecret',) ) - r3b = client.prepare_request_body(include_client_id=True, client_secret='secret') - self.assertIn(r3b, ('grant_type=authorization_code&client_secret=secret&client_id=someclientid', - 'grant_type=authorization_code&client_id=someclientid&client_secret=secret',) + r3b = client.prepare_request_body(include_client_id=True, client_secret='someclientsecret') + self.assertIn(r3b, ('grant_type=authorization_code&client_secret=someclientsecret&client_id=someclientid', + 'grant_type=authorization_code&client_id=someclientid&client_secret=someclientsecret',) ) # scenario Warnings |
