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
9de6b912
Commit
9de6b912
authored
Feb 29, 2016
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11698 from edx/renzo/speed-up-test-course-listing
Speed up course listing tests
parents
bd4cc57b
447eb4c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cms/djangoapps/contentstore/tests/test_course_listing.py
+7
-6
No files found.
cms/djangoapps/contentstore/tests/test_course_listing.py
View file @
9de6b912
...
...
@@ -29,8 +29,9 @@ from opaque_keys.edx.locations import CourseLocator
from
xmodule.error_module
import
ErrorDescriptor
from
course_action_state.models
import
CourseRerunState
TOTAL_COURSES_COUNT
=
500
USER_COURSES_COUNT
=
50
TOTAL_COURSES_COUNT
=
10
USER_COURSES_COUNT
=
1
@ddt.ddt
...
...
@@ -157,8 +158,8 @@ class TestCourseListing(ModuleStoreTestCase, XssTestMixin):
self
.
assertEqual
(
courses_list_by_groups
,
[])
@ddt.data
(
(
ModuleStoreEnum
.
Type
.
split
,
5
),
(
ModuleStoreEnum
.
Type
.
mongo
,
3
)
(
ModuleStoreEnum
.
Type
.
split
,
3
),
(
ModuleStoreEnum
.
Type
.
mongo
,
2
)
)
@ddt.unpack
def
test_staff_course_listing
(
self
,
default_store
,
mongo_calls
):
...
...
@@ -265,8 +266,8 @@ class TestCourseListing(ModuleStoreTestCase, XssTestMixin):
)
@ddt.data
(
(
ModuleStoreEnum
.
Type
.
split
,
150
,
505
),
(
ModuleStoreEnum
.
Type
.
mongo
,
USER_COURSES_COUNT
,
3
)
(
ModuleStoreEnum
.
Type
.
split
,
3
,
13
),
(
ModuleStoreEnum
.
Type
.
mongo
,
USER_COURSES_COUNT
,
2
)
)
@ddt.unpack
def
test_course_listing_performance
(
self
,
store
,
courses_list_from_group_calls
,
courses_list_calls
):
...
...
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