Skip to content

Commit 064a518

Browse files
committed
Fix failing tests
1 parent f0930dc commit 064a518

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/dot_ext/tests/demographic_scopes_test_cases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
--------------------------------------------------
4848
USED in the following test:
4949
apps.dot_ext.tests.test_form_oauth2
50-
.TestSimpleAllowFormForm.test_form()
50+
.TestSimpleAllowForm.test_form()
5151
Test case dictionary key and value meanings:
5252
REQUEST PARAMETERS:
5353
These are used to setup the authorization request.
@@ -68,7 +68,7 @@
6868
"request_scopes": APPLICATION_SCOPES_FULL,
6969
# Result:
7070
"result_form_is_valid": True,
71-
"result_token_scopes_granted": APPLICATION_SCOPES_FULL,
71+
"result_token_scopes_granted": APPLICATION_SCOPES_NON_DEMOGRAPHIC,
7272
},
7373
"test 2: share_demographic_scopes = False": {
7474
# Request:

apps/dot_ext/tests/test_form_oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .demographic_scopes_test_cases import FORM_OAUTH2_SCOPES_TEST_CASES
55

66

7-
class TestSimpleAllowFormForm(BaseApiTest):
7+
class TestSimpleAllowForm(BaseApiTest):
88
fixtures = ['scopes.json']
99

1010
def test_form(self):

apps/dot_ext/tests/test_verify_bfd_headers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def _create_test_token(self, user, application):
6363
"scope": application.scopes().split(" "),
6464
"expires_in": 86400,
6565
"allow": True,
66+
"share_demographic_scopes": True
6667
}
6768
if application.authorization_grant_type == Application.GRANT_IMPLICIT:
6869
payload["response_type"] = "token"

0 commit comments

Comments
 (0)