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
091a6530
Commit
091a6530
authored
Dec 17, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some tests on edx-west
parent
20892e1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
lms/djangoapps/branding/tests.py
+0
-9
lms/djangoapps/bulk_email/tests/tests.py
+2
-1
No files found.
lms/djangoapps/branding/tests.py
View file @
091a6530
...
...
@@ -32,15 +32,6 @@ class AnonymousIndexPageTest(ModuleStoreTestCase):
self
.
store
.
save_xmodule
(
self
.
course
)
@override_settings
(
MITX_FEATURES
=
MITX_FEATURES_WITH_STARTDATE
)
def
test_none_user_index_access_with_startdate_fails
(
self
):
"""
This was a "before" test for a bugfix. If someone fixes the bug another way in the future
and this test begins failing (but the other two pass), then feel free to delete this test.
"""
with
self
.
assertRaisesRegexp
(
AttributeError
,
"'NoneType' object has no attribute 'is_authenticated'"
):
student
.
views
.
index
(
self
.
factory
.
get
(
'/'
),
user
=
None
)
# pylint: disable=E1101
@override_settings
(
MITX_FEATURES
=
MITX_FEATURES_WITH_STARTDATE
)
def
test_anon_user_with_startdate_index
(
self
):
response
=
self
.
client
.
get
(
'/'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
...
...
lms/djangoapps/bulk_email/tests/tests.py
View file @
091a6530
...
...
@@ -26,11 +26,12 @@ class TestInstructorDashboardEmailView(ModuleStoreTestCase):
instructor
=
AdminFactory
.
create
()
self
.
client
.
login
(
username
=
instructor
.
username
,
password
=
"test"
)
@patch.dict
(
settings
.
MITX_FEATURES
,
{
'ENABLE_INSTRUCTOR_EMAIL'
:
True
})
@patch.dict
(
settings
.
MITX_FEATURES
,
{
'ENABLE_INSTRUCTOR_EMAIL'
:
True
,
'REQUIRE_COURSE_EMAIL_AUTH'
:
False
})
def
test_email_flag_true
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
}))
email_link
=
'<a href="#" onclick="goto(
\'
Email
\'
)" class="None">Email</a>'
print
(
response
.
content
)
self
.
assertTrue
(
email_link
in
response
.
content
)
session
=
self
.
client
.
session
...
...
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