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
947538bb
Commit
947538bb
authored
Nov 05, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10507 from edx/benp/mp-learner-profile-events
Refactor for multiprocessing.
parents
6daa5a63
8f05878e
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 @
947538bb
...
...
@@ -75,7 +75,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
# Reset event tracking so that the tests only see events from
# loading the profile page.
self
.
reset_event_tracking
()
self
.
start_time
=
datetime
.
now
()
# pylint: disable=attribute-defined-outside-init
# Load the page
profile_page
.
visit
()
...
...
@@ -119,7 +119,9 @@ class LearnerProfileTestMixin(EventsTestMixin):
"""
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
(
[
{
...
...
@@ -150,6 +152,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
event_filter
=
{
'event_type'
:
self
.
USER_SETTINGS_CHANGED_EVENT_NAME
,
'username'
:
username
,
}
with
self
.
assert_events_match_during
(
event_filter
=
event_filter
,
expected_events
=
[
expected_event
]):
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