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
274f1d17
Commit
274f1d17
authored
Jun 25, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test start_date in course settings
parent
3188bb06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
cms/djangoapps/contentstore/tests/test_course_settings.py
+5
-1
No files found.
cms/djangoapps/contentstore/tests/test_course_settings.py
View file @
274f1d17
...
@@ -105,7 +105,6 @@ class CourseDetailsTestCase(CourseTestCase):
...
@@ -105,7 +105,6 @@ class CourseDetailsTestCase(CourseTestCase):
self
.
assertEqual
(
jsondetails
[
'string'
],
'string'
)
self
.
assertEqual
(
jsondetails
[
'string'
],
'string'
)
def
test_update_and_fetch
(
self
):
def
test_update_and_fetch
(
self
):
# # NOTE: I couldn't figure out how to validly test time setting w/ all the conversions
jsondetails
=
CourseDetails
.
fetch
(
self
.
course_location
)
jsondetails
=
CourseDetails
.
fetch
(
self
.
course_location
)
jsondetails
.
syllabus
=
"<a href='foo'>bar</a>"
jsondetails
.
syllabus
=
"<a href='foo'>bar</a>"
# encode - decode to convert date fields and other data which changes form
# encode - decode to convert date fields and other data which changes form
...
@@ -128,6 +127,11 @@ class CourseDetailsTestCase(CourseTestCase):
...
@@ -128,6 +127,11 @@ class CourseDetailsTestCase(CourseTestCase):
CourseDetails
.
update_from_json
(
jsondetails
.
__dict__
)
.
effort
,
CourseDetails
.
update_from_json
(
jsondetails
.
__dict__
)
.
effort
,
jsondetails
.
effort
,
"After set effort"
jsondetails
.
effort
,
"After set effort"
)
)
jsondetails
.
start_date
=
datetime
.
datetime
(
2010
,
10
,
1
,
0
,
tzinfo
=
UTC
())
self
.
assertEqual
(
CourseDetails
.
update_from_json
(
jsondetails
.
__dict__
)
.
start_date
,
jsondetails
.
start_date
)
@override_settings
(
MKTG_URLS
=
{
'ROOT'
:
'dummy-root'
})
@override_settings
(
MKTG_URLS
=
{
'ROOT'
:
'dummy-root'
})
def
test_marketing_site_fetch
(
self
):
def
test_marketing_site_fetch
(
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