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
8f05878e
Commit
8f05878e
authored
Nov 04, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor for multiprocessing.
parent
74ef9dd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
common/test/acceptance/tests/lms/test_learner_profile.py
+5
-2
No files found.
common/test/acceptance/tests/lms/test_learner_profile.py
View file @
8f05878e
...
@@ -75,7 +75,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
...
@@ -75,7 +75,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
# Reset event tracking so that the tests only see events from
# Reset event tracking so that the tests only see events from
# loading the profile page.
# loading the profile page.
self
.
reset_event_tracking
()
self
.
start_time
=
datetime
.
now
()
# pylint: disable=attribute-defined-outside-init
# Load the page
# Load the page
profile_page
.
visit
()
profile_page
.
visit
()
...
@@ -119,7 +119,9 @@ class LearnerProfileTestMixin(EventsTestMixin):
...
@@ -119,7 +119,9 @@ class LearnerProfileTestMixin(EventsTestMixin):
"""
"""
actual_events
=
self
.
wait_for_events
(
actual_events
=
self
.
wait_for_events
(
event_filter
=
{
'event_type'
:
'edx.user.settings.viewed'
},
number_of_matches
=
1
)
start_time
=
self
.
start_time
,
event_filter
=
{
'event_type'
:
'edx.user.settings.viewed'
,
'username'
:
requesting_username
},
number_of_matches
=
1
)
self
.
assert_events_match
(
self
.
assert_events_match
(
[
[
{
{
...
@@ -150,6 +152,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
...
@@ -150,6 +152,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
event_filter
=
{
event_filter
=
{
'event_type'
:
self
.
USER_SETTINGS_CHANGED_EVENT_NAME
,
'event_type'
:
self
.
USER_SETTINGS_CHANGED_EVENT_NAME
,
'username'
:
username
,
}
}
with
self
.
assert_events_match_during
(
event_filter
=
event_filter
,
expected_events
=
[
expected_event
]):
with
self
.
assert_events_match_during
(
event_filter
=
event_filter
,
expected_events
=
[
expected_event
]):
yield
yield
...
...
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