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
75bef91e
Commit
75bef91e
authored
Nov 24, 2015
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix query counts after Django 1.8 merge.
parent
9b7ce7f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/courseware/tests/test_course_info.py
+2
-2
lms/djangoapps/teams/tests/test_views.py
+3
-3
No files found.
lms/djangoapps/courseware/tests/test_course_info.py
View file @
75bef91e
...
...
@@ -215,7 +215,7 @@ class SelfPacedCourseInfoTestCase(LoginEnrollmentTestCase, SharedModuleStoreTest
self
.
assertEqual
(
resp
.
status_code
,
200
)
def
test_num_queries_instructor_paced
(
self
):
self
.
fetch_course_info_with_queries
(
self
.
instructor_paced_course
,
1
7
,
4
)
self
.
fetch_course_info_with_queries
(
self
.
instructor_paced_course
,
1
9
,
4
)
def
test_num_queries_self_paced
(
self
):
self
.
fetch_course_info_with_queries
(
self
.
self_paced_course
,
1
7
,
4
)
self
.
fetch_course_info_with_queries
(
self
.
self_paced_course
,
1
9
,
4
)
lms/djangoapps/teams/tests/test_views.py
View file @
75bef91e
...
...
@@ -115,8 +115,8 @@ class TestDashboard(SharedModuleStoreTestCase):
CourseEnrollmentFactory
.
create
(
user
=
self
.
user
,
course_id
=
self
.
course
.
id
)
self
.
client
.
login
(
username
=
self
.
user
.
username
,
password
=
self
.
test_password
)
# Check the query count on the dashboard
W
ith no teams
with
self
.
assertNumQueries
(
22
):
# Check the query count on the dashboard
w
ith no teams
with
self
.
assertNumQueries
(
18
):
self
.
client
.
get
(
self
.
teams_url
)
# Create some teams
...
...
@@ -131,7 +131,7 @@ class TestDashboard(SharedModuleStoreTestCase):
team
.
add_user
(
self
.
user
)
# Check the query count on the dashboard again
with
self
.
assertNumQueries
(
2
2
):
with
self
.
assertNumQueries
(
2
4
):
self
.
client
.
get
(
self
.
teams_url
)
def
test_bad_course_id
(
self
):
...
...
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