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
74a36652
Commit
74a36652
authored
Jun 21, 2016
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update query and mongo counts
parent
1fbb4b8b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
cms/djangoapps/contentstore/tests/test_orphan.py
+1
-1
lms/djangoapps/courseware/tests/test_views.py
+1
-1
lms/djangoapps/django_comment_client/forum/tests.py
+4
-4
lms/djangoapps/instructor/tests/views/test_instructor_dashboard.py
+1
-1
No files found.
cms/djangoapps/contentstore/tests/test_orphan.py
View file @
74a36652
...
...
@@ -101,7 +101,7 @@ class TestOrphan(TestOrphanBase):
@ddt.data
(
(
ModuleStoreEnum
.
Type
.
split
,
9
,
6
),
(
ModuleStoreEnum
.
Type
.
mongo
,
3
0
,
13
),
(
ModuleStoreEnum
.
Type
.
mongo
,
3
4
,
13
),
)
@ddt.unpack
def
test_delete_orphans
(
self
,
default_store
,
max_mongo_calls
,
min_mongo_calls
):
...
...
lms/djangoapps/courseware/tests/test_views.py
View file @
74a36652
...
...
@@ -1340,7 +1340,7 @@ class ProgressPageTests(ModuleStoreTestCase):
self
.
assertContains
(
resp
,
u"Download Your Certificate"
)
@ddt.data
(
*
itertools
.
product
(((
55
,
4
,
True
),
(
55
,
4
,
False
)),
(
True
,
False
))
*
itertools
.
product
(((
46
,
4
,
True
),
(
46
,
4
,
False
)),
(
True
,
False
))
)
@ddt.unpack
def
test_query_counts
(
self
,
(
sql_calls
,
mongo_calls
,
self_paced
),
self_paced_enabled
):
...
...
lms/djangoapps/django_comment_client/forum/tests.py
View file @
74a36652
...
...
@@ -342,11 +342,11 @@ class SingleThreadQueryCountTestCase(ModuleStoreTestCase):
@ddt.data
(
# old mongo with cache
(
ModuleStoreEnum
.
Type
.
mongo
,
1
,
6
,
4
,
1
8
,
10
),
(
ModuleStoreEnum
.
Type
.
mongo
,
50
,
6
,
4
,
1
8
,
10
),
(
ModuleStoreEnum
.
Type
.
mongo
,
1
,
6
,
4
,
1
7
,
8
),
(
ModuleStoreEnum
.
Type
.
mongo
,
50
,
6
,
4
,
1
7
,
8
),
# split mongo: 3 queries, regardless of thread response size.
(
ModuleStoreEnum
.
Type
.
split
,
1
,
3
,
3
,
1
8
,
10
),
(
ModuleStoreEnum
.
Type
.
split
,
50
,
3
,
3
,
1
8
,
10
),
(
ModuleStoreEnum
.
Type
.
split
,
1
,
3
,
3
,
1
7
,
8
),
(
ModuleStoreEnum
.
Type
.
split
,
50
,
3
,
3
,
1
7
,
8
),
)
@ddt.unpack
def
test_number_of_mongo_queries
(
...
...
lms/djangoapps/instructor/tests/views/test_instructor_dashboard.py
View file @
74a36652
...
...
@@ -392,6 +392,6 @@ class TestInstructorDashboardPerformance(ModuleStoreTestCase, LoginEnrollmentTes
# check MongoDB calls count
url
=
reverse
(
'spoc_gradebook'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
})
with
check_mongo_calls
(
8
):
with
check_mongo_calls
(
7
):
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
200
)
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