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
6b12969e
Commit
6b12969e
authored
Aug 24, 2015
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use bulk_operations in group access tests.
parent
1f6d28e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
lms/djangoapps/courseware/tests/test_group_access.py
+10
-9
No files found.
lms/djangoapps/courseware/tests/test_group_access.py
View file @
6b12969e
...
...
@@ -126,15 +126,16 @@ class GroupAccessTestCase(ModuleStoreTestCase):
self
.
course
=
CourseFactory
.
create
(
user_partitions
=
[
self
.
animal_partition
,
self
.
color_partition
],
)
chapter
=
ItemFactory
.
create
(
category
=
'chapter'
,
parent
=
self
.
course
)
section
=
ItemFactory
.
create
(
category
=
'sequential'
,
parent
=
chapter
)
vertical
=
ItemFactory
.
create
(
category
=
'vertical'
,
parent
=
section
)
component
=
ItemFactory
.
create
(
category
=
'problem'
,
parent
=
vertical
)
self
.
chapter_location
=
chapter
.
location
self
.
section_location
=
section
.
location
self
.
vertical_location
=
vertical
.
location
self
.
component_location
=
component
.
location
with
self
.
store
.
bulk_operations
(
self
.
course
.
id
,
emit_signals
=
False
):
chapter
=
ItemFactory
.
create
(
category
=
'chapter'
,
parent
=
self
.
course
)
section
=
ItemFactory
.
create
(
category
=
'sequential'
,
parent
=
chapter
)
vertical
=
ItemFactory
.
create
(
category
=
'vertical'
,
parent
=
section
)
component
=
ItemFactory
.
create
(
category
=
'problem'
,
parent
=
vertical
)
self
.
chapter_location
=
chapter
.
location
self
.
section_location
=
section
.
location
self
.
vertical_location
=
vertical
.
location
self
.
component_location
=
component
.
location
self
.
red_cat
=
UserFactory
()
# student in red and cat groups
self
.
set_user_group
(
self
.
red_cat
,
self
.
animal_partition
,
self
.
cat_group
)
...
...
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