Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7be7b50b
Commit
7be7b50b
authored
Dec 12, 2014
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mock out the underlying segment-io call.
TE-532
parent
0bce5569
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
common/djangoapps/third_party_auth/tests/specs/base.py
+2
-0
No files found.
common/djangoapps/third_party_auth/tests/specs/base.py
View file @
7be7b50b
...
...
@@ -424,6 +424,7 @@ class IntegrationTest(testutil.TestCase, test.TestCase):
request
,
strategy
=
self
.
get_request_and_strategy
(
auth_entry
=
pipeline
.
AUTH_ENTRY_LOGIN
,
redirect_uri
=
'social:complete'
)
strategy
.
backend
.
auth_complete
=
mock
.
MagicMock
(
return_value
=
self
.
fake_auth_complete
(
strategy
))
pipeline
.
analytics
.
track
=
mock
.
MagicMock
()
request
.
user
=
self
.
create_user_models_for_existing_account
(
strategy
,
'user@example.com'
,
'password'
,
self
.
get_username
(),
skip_social_auth
=
True
)
...
...
@@ -558,6 +559,7 @@ class IntegrationTest(testutil.TestCase, test.TestCase):
request
,
strategy
=
self
.
get_request_and_strategy
(
auth_entry
=
pipeline
.
AUTH_ENTRY_LOGIN
,
redirect_uri
=
'social:complete'
)
strategy
.
backend
.
auth_complete
=
mock
.
MagicMock
(
return_value
=
self
.
fake_auth_complete
(
strategy
))
pipeline
.
analytics
.
track
=
mock
.
MagicMock
()
user
=
self
.
create_user_models_for_existing_account
(
strategy
,
'user@example.com'
,
'password'
,
self
.
get_username
())
self
.
assert_social_auth_exists_for_user
(
user
,
strategy
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment