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
01205cde
Commit
01205cde
authored
Oct 07, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tz aware
parent
a63d58cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/views/tests/test_course_index.py
+2
-2
No files found.
cms/djangoapps/contentstore/views/tests/test_course_index.py
View file @
01205cde
...
@@ -21,6 +21,7 @@ from course_action_state.managers import CourseRerunUIStateManager
...
@@ -21,6 +21,7 @@ from course_action_state.managers import CourseRerunUIStateManager
from
django.conf
import
settings
from
django.conf
import
settings
import
ddt
import
ddt
import
threading
import
threading
import
pytz
class
TestCourseIndex
(
CourseTestCase
):
class
TestCourseIndex
(
CourseTestCase
):
...
@@ -304,7 +305,7 @@ class TestCourseOutline(CourseTestCase):
...
@@ -304,7 +305,7 @@ class TestCourseOutline(CourseTestCase):
self
.
assertEqual
(
_get_release_date
(
response
),
'Unscheduled'
)
self
.
assertEqual
(
_get_release_date
(
response
),
'Unscheduled'
)
_assert_settings_link_present
(
response
)
_assert_settings_link_present
(
response
)
self
.
course
.
start
=
datetime
.
datetime
(
2014
,
1
,
1
)
self
.
course
.
start
=
datetime
.
datetime
(
2014
,
1
,
1
,
tzinfo
=
pytz
.
utc
)
modulestore
()
.
update_item
(
self
.
course
,
ModuleStoreEnum
.
UserID
.
test
)
modulestore
()
.
update_item
(
self
.
course
,
ModuleStoreEnum
.
UserID
.
test
)
response
=
self
.
client
.
get
(
outline_url
,
{},
HTTP_ACCEPT
=
'text/html'
)
response
=
self
.
client
.
get
(
outline_url
,
{},
HTTP_ACCEPT
=
'text/html'
)
...
@@ -332,6 +333,5 @@ class OutlinePerfTest(TestCourseOutline):
...
@@ -332,6 +333,5 @@ class OutlinePerfTest(TestCourseOutline):
with
check_mongo_calls
(
5
*
num_threads
,
0
):
with
check_mongo_calls
(
5
*
num_threads
,
0
):
outline_threads
=
[
threading
.
Thread
(
target
=
test_client
)
for
__
in
range
(
num_threads
)]
outline_threads
=
[
threading
.
Thread
(
target
=
test_client
)
for
__
in
range
(
num_threads
)]
[
thread
.
start
()
for
thread
in
outline_threads
]
[
thread
.
start
()
for
thread
in
outline_threads
]
self
.
assertTrue
(
all
(
thread
.
is_alive
()
for
thread
in
outline_threads
))
# now wait until they all finish
# now wait until they all finish
[
thread
.
join
()
for
thread
in
outline_threads
]
[
thread
.
join
()
for
thread
in
outline_threads
]
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