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
ad86ef3b
Commit
ad86ef3b
authored
Feb 13, 2015
by
Greg Price
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change cohort tests to not use an invalid username
parent
ef85cb4b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
common/test/acceptance/tests/discussion/test_cohort_management.py
+5
-5
common/test/acceptance/tests/test_cohorted_courseware.py
+1
-1
common/test/data/uploads/cohort_users_both_columns.csv
+1
-1
common/test/data/uploads/cohort_users_only_email.csv
+1
-1
common/test/data/uploads/cohort_users_only_username.csv
+1
-2
No files found.
common/test/acceptance/tests/discussion/test_cohort_management.py
View file @
ad86ef3b
...
...
@@ -51,9 +51,9 @@ class CohortConfigurationTest(UniqueCourseTest, CohortTestMixin):
)
.
visit
()
.
get_user_id
()
self
.
add_user_to_cohort
(
self
.
course_fixture
,
self
.
student_name
,
self
.
manual_cohort_id
)
# create a
user with unicode characters in their username
self
.
unicode
_student_id
=
AutoAuthPage
(
self
.
browser
,
username
=
"
Ωπ"
,
email
=
"unicode
_student_user@example.com"
,
# create a
second student user
self
.
other
_student_id
=
AutoAuthPage
(
self
.
browser
,
username
=
"
other_student_user"
,
email
=
"other
_student_user@example.com"
,
course_id
=
self
.
course_id
,
staff
=
False
)
.
visit
()
.
get_user_id
()
...
...
@@ -389,12 +389,12 @@ class CohortConfigurationTest(UniqueCourseTest, CohortTestMixin):
})
.
count
(),
1
)
#
unicode
_student_user (previously unassigned) is added to manual cohort
#
other
_student_user (previously unassigned) is added to manual cohort
self
.
assertEqual
(
self
.
event_collection
.
find
({
"name"
:
"edx.cohort.user_added"
,
"time"
:
{
"$gt"
:
start_time
},
"event.user_id"
:
{
"$in"
:
[
int
(
self
.
unicode
_student_id
)]},
"event.user_id"
:
{
"$in"
:
[
int
(
self
.
other
_student_id
)]},
"event.cohort_name"
:
self
.
manual_cohort_name
,
})
.
count
(),
1
...
...
common/test/acceptance/tests/test_cohorted_courseware.py
View file @
ad86ef3b
...
...
@@ -47,7 +47,7 @@ class EndToEndCohortedCoursewareTest(ContainerBase):
)
.
visit
()
# Create a student who will end up in the default cohort group
self
.
cohort_default_student_username
=
"cohort
default
student"
self
.
cohort_default_student_username
=
"cohort
_default_
student"
self
.
cohort_default_student_email
=
"cohort_default_student@example.com"
StudioAutoAuthPage
(
self
.
browser
,
username
=
self
.
cohort_default_student_username
,
...
...
common/test/data/uploads/cohort_users_both_columns.csv
View file @
ad86ef3b
username,email,ignored_column,cohort
instructor_user,,June,ManualCohort1
,student_user@example.com,Spring,AutoCohort1
Ωπ
,,Fall,ManualCohort1
other_student_user
,,Fall,ManualCohort1
common/test/data/uploads/cohort_users_only_email.csv
View file @
ad86ef3b
email,cohort
instructor_user@example.com,ManualCohort1
student_user@example.com,AutoCohort1
unicode
_student_user@example.com,ManualCohort1
other
_student_user@example.com,ManualCohort1
common/test/data/uploads/cohort_users_only_username.csv
View file @
ad86ef3b
username,cohort
instructor_user,ManualCohort1
student_user,AutoCohort1
Ωπ,ManualCohort1
\ No newline at end of file
other_student_user,ManualCohort1
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