Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
32753882
Commit
32753882
authored
5 years ago
by
Dave St.Germain
Browse files
Options
Downloads
Plain Diff
Merge branch 'feanil/fix_cmp_issues' of github.com:edx/edx-platform into feanil/fix_cmp_issues
parents
0267b5c8
b7019bdd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/courseware/tests/test_course_info.py
+4
-4
4 additions, 4 deletions
lms/djangoapps/courseware/tests/test_course_info.py
with
4 additions
and
4 deletions
lms/djangoapps/courseware/tests/test_course_info.py
+
4
−
4
View file @
32753882
...
@@ -62,14 +62,14 @@ class CourseInfoTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCase,
...
@@ -62,14 +62,14 @@ class CourseInfoTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCase,
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
resp
=
self
.
client
.
get
(
url
)
resp
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertIn
(
"
OOGIE BLOOGIE
"
,
resp
.
content
)
self
.
assertIn
(
b
"
OOGIE BLOOGIE
"
,
resp
.
content
)
self
.
assertIn
(
"
You are not currently enrolled in this course
"
,
resp
.
content
)
self
.
assertIn
(
b
"
You are not currently enrolled in this course
"
,
resp
.
content
)
def
test_logged_in_enrolled
(
self
):
def
test_logged_in_enrolled
(
self
):
self
.
enroll
(
self
.
course
)
self
.
enroll
(
self
.
course
)
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
resp
=
self
.
client
.
get
(
url
)
resp
=
self
.
client
.
get
(
url
)
self
.
assertNotIn
(
"
You are not currently enrolled in this course
"
,
resp
.
content
)
self
.
assertNotIn
(
b
"
You are not currently enrolled in this course
"
,
resp
.
content
)
# TODO: LEARNER-611: If this is only tested under Course Info, does this need to move?
# TODO: LEARNER-611: If this is only tested under Course Info, does this need to move?
@mock.patch
(
'
openedx.features.enterprise_support.api.enterprise_customer_for_request
'
)
@mock.patch
(
'
openedx.features.enterprise_support.api.enterprise_customer_for_request
'
)
...
@@ -93,7 +93,7 @@ class CourseInfoTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCase,
...
@@ -93,7 +93,7 @@ class CourseInfoTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCase,
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
url
=
reverse
(
'
info
'
,
args
=
[
text_type
(
self
.
course
.
id
)])
resp
=
self
.
client
.
get
(
url
)
resp
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertNotIn
(
"
OOGIE BLOOGIE
"
,
resp
.
content
)
self
.
assertNotIn
(
b
"
OOGIE BLOOGIE
"
,
resp
.
content
)
def
test_logged_in_not_enrolled
(
self
):
def
test_logged_in_not_enrolled
(
self
):
self
.
setup_user
()
self
.
setup_user
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment