|
47 | 47 | -------------------------------------------------- |
48 | 48 | USED in the following test: |
49 | 49 | apps.dot_ext.tests.test_form_oauth2 |
50 | | - .TestSimpleAllowFormForm.test_form() |
| 50 | + .TestSimpleAllowForm.test_form() |
51 | 51 | Test case dictionary key and value meanings: |
52 | 52 | REQUEST PARAMETERS: |
53 | 53 | These are used to setup the authorization request. |
|
68 | 68 | "request_scopes": APPLICATION_SCOPES_FULL, |
69 | 69 | # Result: |
70 | 70 | "result_form_is_valid": True, |
71 | | - "result_token_scopes_granted": APPLICATION_SCOPES_FULL, |
| 71 | + "result_token_scopes_granted": APPLICATION_SCOPES_NON_DEMOGRAPHIC, |
72 | 72 | }, |
73 | 73 | "test 2: share_demographic_scopes = False": { |
74 | 74 | # Request: |
|
181 | 181 | "request_scopes": APPLICATION_SCOPES_FULL, |
182 | 182 | # Result: |
183 | 183 | "result_has_error": False, |
184 | | - "result_token_scopes_granted": APPLICATION_SCOPES_FULL, |
| 184 | + "result_token_scopes_granted": APPLICATION_SCOPES_NON_DEMOGRAPHIC, |
185 | 185 | "result_access_token_count": 1, |
186 | 186 | "result_refresh_token_count": 1, |
187 | 187 | "result_archived_token_count": 0, |
|
221 | 221 | "request_scopes": APPLICATION_SCOPES_FULL, |
222 | 222 | # Result: |
223 | 223 | "result_has_error": False, |
224 | | - "result_token_scopes_granted": APPLICATION_SCOPES_FULL, |
| 224 | + "result_token_scopes_granted": APPLICATION_SCOPES_NON_DEMOGRAPHIC, |
225 | 225 | "result_access_token_count": 3, |
226 | 226 | "result_refresh_token_count": 3, |
227 | 227 | "result_archived_token_count": 1, |
|
314 | 314 | "request_scopes": SCOPES_JUST_PATIENT_AND_A, |
315 | 315 | # Result: |
316 | 316 | "result_has_error": False, |
317 | | - "result_token_scopes_granted": SCOPES_JUST_PATIENT_AND_A, |
| 317 | + "result_token_scopes_granted": SCOPES_JUST_A, |
318 | 318 | "result_access_token_count": 3, |
319 | 319 | "result_refresh_token_count": 3, |
320 | 320 | "result_archived_token_count": 8, |
|
0 commit comments