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
fd76f375
Commit
fd76f375
authored
Jan 09, 2015
by
arbisoft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-528 added test cases
parent
7eb8195c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
common/djangoapps/student/tests/test_recent_enrollments.py
+20
-20
No files found.
common/djangoapps/student/tests/test_recent_enrollments.py
View file @
fd76f375
...
...
@@ -127,38 +127,38 @@ class TestRecentEnrollments(ModuleStoreTestCase):
self
.
assertContains
(
response
,
"Thank you for enrolling in"
)
@ddt.data
(
# (['audit', 'honor'], 'honor', Fals
e),
([
'audit'
,
'honor'
],
'honor'
,
Tru
e
),
([
'professional'
],
'honor'
,
True
),
([
'verified'
],
'honor'
,
True
),
([
'professional'
,
'verified'
],
'honor'
,
True
),
([
'audit'
,
'honor'
,
'professional'
],
'honor'
,
True
),
([
'audit'
,
'honor'
,
'verified'
],
'honor'
,
True
),
([
'audit'
,
'honor'
,
'verified'
,
'professional'
],
'honor'
,
True
),
# (['audit'], 'honor', Fals
e),
# (['honor'], 'honor', Fals
e),
# ([], 'honor', Fals
e),
#
# (['audit', 'honor'], 'audit', Fals
e),
#
(['professional'], 'audit', True),
#
(['verified'], 'audit', True),
#
(['professional', 'verified'], 'audit', True),
#
(['audit', 'honor', 'professional'], 'audit', True),
#
(['audit', 'honor', 'verified'], 'audit', True),
#
(['audit', 'honor', 'verified', 'professional'], 'audit', True),
#
(['audit'], 'audit', True),
#
(['honor'], 'audit', True),
#
([], 'audit', True),
#
(['audit', 'honor'], 'verified', False),
([
'audit'
],
'honor'
,
Tru
e
),
([
'honor'
],
'honor'
,
Tru
e
),
([],
'honor'
,
Tru
e
),
([
'audit'
,
'honor'
],
'audit'
,
Tru
e
),
([
'professional'
],
'audit'
,
True
),
([
'verified'
],
'audit'
,
True
),
([
'professional'
,
'verified'
],
'audit'
,
True
),
([
'audit'
,
'honor'
,
'professional'
],
'audit'
,
True
),
([
'audit'
,
'honor'
,
'verified'
],
'audit'
,
True
),
([
'audit'
,
'honor'
,
'verified'
,
'professional'
],
'audit'
,
True
),
([
'audit'
],
'audit'
,
True
),
([
'honor'
],
'audit'
,
True
),
([],
'audit'
,
True
),
([
'audit'
,
'honor'
],
'verified'
,
False
),
([
'professional'
],
'verified'
,
False
),
([
'verified'
],
'verified'
,
False
),
([
'professional'
,
'verified'
],
'verified'
,
False
),
([
'audit'
,
'honor'
,
'professional'
],
'verified'
,
False
),
([
'audit'
,
'honor'
,
'verified'
],
'verified'
,
False
),
([
'audit'
,
'honor'
,
'verified'
,
'professional'
],
'verified'
,
False
),
#
(['audit'], 'verified', False),
#
(['honor'], 'verified', False),
#
([], 'verified', False)
([
'audit'
],
'verified'
,
False
),
([
'honor'
],
'verified'
,
False
),
([],
'verified'
,
False
)
)
@ddt.unpack
def
test_donate_button
(
self
,
course_modes
,
enrollment_mode
,
show_donate
):
...
...
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