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
5fa38cb5
Commit
5fa38cb5
authored
Sep 19, 2014
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add simple help-modal-test
parent
10bd2b00
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
lms/tests.py
+20
-0
No files found.
lms/tests.py
View file @
5fa38cb5
"""Tests for the lms module itself."""
"""Tests for the lms module itself."""
import
mimetypes
import
mimetypes
from
mock
import
patch
from
django.test
import
TestCase
from
django.test
import
TestCase
from
django.test.utils
import
override_settings
from
django.core.urlresolvers
import
reverse
from
edxmako
import
add_lookup
,
LOOKUP
from
edxmako
import
add_lookup
,
LOOKUP
from
lms
import
startup
from
lms
import
startup
from
xmodule.modulestore.tests.factories
import
CourseFactory
class
LmsModuleTests
(
TestCase
):
class
LmsModuleTests
(
TestCase
):
...
@@ -36,3 +40,19 @@ class TemplateLookupTests(TestCase):
...
@@ -36,3 +40,19 @@ class TemplateLookupTests(TestCase):
startup
.
enable_microsites
()
startup
.
enable_microsites
()
directories
=
LOOKUP
[
'main'
]
.
directories
directories
=
LOOKUP
[
'main'
]
.
directories
self
.
assertEqual
(
len
([
dir
for
dir
in
directories
if
'external_module'
in
dir
]),
1
)
self
.
assertEqual
(
len
([
dir
for
dir
in
directories
if
'external_module'
in
dir
]),
1
)
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'ENABLE_FEEDBACK_SUBMISSION'
:
True
})
class
HelpModalTests
(
TestCase
):
"""Tests for the help modal"""
def
setUp
(
self
):
self
.
course
=
CourseFactory
.
create
()
def
test_simple_test
(
self
):
"""
Simple test to make sure that you don't get a 500 error when the modal
is enabled.
"""
url
=
reverse
(
'info'
,
args
=
[
self
.
course
.
id
.
to_deprecated_string
()])
resp
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
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