Skip to content

Commit a1990c8

Browse files
committed
Merge branch 'st/BB2-4303' of https://github.com/CMSgov/bluebutton-web-server into st/BB2-4303
2 parents cd000e7 + 00f5e74 commit a1990c8

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

apps/testclient/management/commands/create_test_user_and_application.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -80,35 +80,6 @@ def create_user(group, usr):
8080
return u
8181

8282

83-
# def create_application(user, group, app, redirect):
84-
# app_name = "TestApp" if app is None else app
85-
# Application.objects.filter(name=app_name).delete()
86-
# redirect_uri = "{}{}".format(settings.HOSTNAME_URL, settings.TESTCLIENT_REDIRECT_URI)
87-
88-
# if redirect:
89-
# redirect_uri = redirect
90-
91-
# if not (redirect_uri.startswith("http://") or redirect_uri.startswith("https://")):
92-
# redirect_uri = "https://" + redirect_uri
93-
94-
# a = Application.objects.create(name=app_name,
95-
# redirect_uris=redirect_uri,
96-
# user=user,
97-
# data_access_type="THIRTEEN_MONTH",
98-
# client_type="confidential",
99-
# authorization_grant_type="authorization-code")
100-
101-
# titles = ["My Medicare and supplemental coverage information.",
102-
# "My Medicare claim information.",
103-
# "My general patient and demographic information.",
104-
# "Profile information including name and email."
105-
# ]
106-
107-
# for t in titles:
108-
# c = ProtectedCapability.objects.get(title=t)
109-
# a.scope.add(c)
110-
# return a
111-
11283
def create_application(user):
11384
app_name = "TestApp"
11485
if Application.objects.filter(name=app_name).exists():
@@ -151,7 +122,7 @@ def create_test_token(user, application):
151122

152123
if AccessToken.objects.filter(token="sample-token-string").exists():
153124
t = AccessToken.objects.get(token="sample-token-string")
154-
else:
125+
155126
t = AccessToken.objects.create(user=user, application=application,
156127
token="sample-token-string",
157128
expires=expires,

0 commit comments

Comments
 (0)