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
86637d7f
Commit
86637d7f
authored
May 04, 2017
by
Robert Raposa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various test fixes.
parent
2e8c68e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
openedx/features/course_experience/tests/views/test_course_home.py
+1
-1
openedx/features/course_experience/tests/views/test_course_outline.py
+2
-1
openedx/features/course_experience/tests/views/test_course_updates.py
+1
-1
pavelib/utils/test/suites/nose_suite.py
+1
-1
No files found.
openedx/features/course_experience/tests/views/test_course_home.py
View file @
86637d7f
...
@@ -65,7 +65,7 @@ class TestCourseHomePage(SharedModuleStoreTestCase):
...
@@ -65,7 +65,7 @@ class TestCourseHomePage(SharedModuleStoreTestCase):
get_course_in_cache
(
self
.
course
.
id
)
get_course_in_cache
(
self
.
course
.
id
)
# Fetch the view and verify the query counts
# Fetch the view and verify the query counts
with
self
.
assertNumQueries
(
3
6
):
with
self
.
assertNumQueries
(
3
5
):
with
check_mongo_calls
(
3
):
with
check_mongo_calls
(
3
):
url
=
course_home_url
(
self
.
course
)
url
=
course_home_url
(
self
.
course
)
self
.
client
.
get
(
url
)
self
.
client
.
get
(
url
)
openedx/features/course_experience/tests/views/test_course_outline.py
View file @
86637d7f
...
@@ -4,6 +4,7 @@ Tests for the Course Outline view and supporting views.
...
@@ -4,6 +4,7 @@ Tests for the Course Outline view and supporting views.
import
datetime
import
datetime
import
ddt
import
ddt
import
json
import
json
from
markupsafe
import
escape
from
django.core.urlresolvers
import
reverse
from
django.core.urlresolvers
import
reverse
from
pyquery
import
PyQuery
as
pq
from
pyquery
import
PyQuery
as
pq
...
@@ -243,4 +244,4 @@ class TestEmptyCourseOutlinePage(SharedModuleStoreTestCase):
...
@@ -243,4 +244,4 @@ class TestEmptyCourseOutlinePage(SharedModuleStoreTestCase):
url
=
course_home_url
(
course
)
url
=
course_home_url
(
course
)
response
=
self
.
client
.
get
(
url
)
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertContains
(
response
,
e
xpected_text
)
self
.
assertContains
(
response
,
e
scape
(
expected_text
)
)
openedx/features/course_experience/tests/views/test_course_updates.py
View file @
86637d7f
...
@@ -84,7 +84,7 @@ class TestCourseUpdatesPage(SharedModuleStoreTestCase):
...
@@ -84,7 +84,7 @@ class TestCourseUpdatesPage(SharedModuleStoreTestCase):
def
test_queries
(
self
):
def
test_queries
(
self
):
# Fetch the view and verify that the query counts haven't changed
# Fetch the view and verify that the query counts haven't changed
with
self
.
assertNumQueries
(
3
4
):
with
self
.
assertNumQueries
(
3
2
):
with
check_mongo_calls
(
4
):
with
check_mongo_calls
(
4
):
url
=
course_updates_url
(
self
.
course
)
url
=
course_updates_url
(
self
.
course
)
self
.
client
.
get
(
url
)
self
.
client
.
get
(
url
)
pavelib/utils/test/suites/nose_suite.py
View file @
86637d7f
...
@@ -191,7 +191,7 @@ class SystemTestSuite(NoseTestSuite):
...
@@ -191,7 +191,7 @@ class SystemTestSuite(NoseTestSuite):
if
self
.
root
==
'lms'
:
if
self
.
root
==
'lms'
:
default_test_id
+=
" {system}/tests.py"
default_test_id
+=
" {system}/tests.py"
default_test_id
+=
" openedx/core/djangolib/*"
default_test_id
+=
" openedx/core/djangolib/*"
default_test_id
+=
" openedx/features
/*
"
default_test_id
+=
" openedx/features"
return
default_test_id
.
format
(
system
=
self
.
root
)
return
default_test_id
.
format
(
system
=
self
.
root
)
...
...
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