Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
e6b10d46
Commit
e6b10d46
authored
Mar 06, 2017
by
tasawernawaz
Committed by
Bill DeRusha
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments/docstings added in test_wrapper
parent
c2de6bad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
course_discovery/apps/publisher/tests/test_wrapper.py
+2
-4
No files found.
course_discovery/apps/publisher/tests/test_wrapper.py
View file @
e6b10d46
...
@@ -63,9 +63,7 @@ class CourseRunWrapperTests(TestCase):
...
@@ -63,9 +63,7 @@ class CourseRunWrapperTests(TestCase):
([
Seat
.
PROFESSIONAL
],
Seat
.
PROFESSIONAL
),
([
Seat
.
PROFESSIONAL
],
Seat
.
PROFESSIONAL
),
)
)
def
test_course_type_
(
self
,
seats_list
,
course_type
):
def
test_course_type_
(
self
,
seats_list
,
course_type
):
""" Verify that the wrapper return the course type according to the
""" Verify that the wrapper return the course type according to the available seats."""
available seats.
"""
self
.
_generate_seats
(
seats_list
)
self
.
_generate_seats
(
seats_list
)
wrapper_object
=
CourseRunWrapper
(
self
.
course_run
)
wrapper_object
=
CourseRunWrapper
(
self
.
course_run
)
self
.
assertEqual
(
wrapper_object
.
course_type
,
course_type
)
self
.
assertEqual
(
wrapper_object
.
course_type
,
course_type
)
...
@@ -179,7 +177,7 @@ class CourseRunWrapperTests(TestCase):
...
@@ -179,7 +177,7 @@ class CourseRunWrapperTests(TestCase):
"""Verify that the wrapper return staff list."""
"""Verify that the wrapper return staff list."""
staff
=
PersonFactory
()
staff
=
PersonFactory
()
# another staff with position
# another staff with position
by default staff has no position associated.
staff_2
=
PersonFactory
()
staff_2
=
PersonFactory
()
position
=
PositionFactory
(
person
=
staff_2
)
position
=
PositionFactory
(
person
=
staff_2
)
...
...
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