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
680d5031
Commit
680d5031
authored
Aug 12, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4802 from edx/will/unit-test-staticfiles
Unit tests don't need assets
parents
9f1779ed
a827df27
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
cms/envs/test.py
+8
-0
lms/envs/test.py
+7
-0
pavelib/utils/test/suites/nose_suite.py
+0
-6
No files found.
cms/envs/test.py
View file @
680d5031
...
...
@@ -59,6 +59,14 @@ STATICFILES_DIRS += [
if
os
.
path
.
isdir
(
COMMON_TEST_DATA_ROOT
/
course_dir
)
]
# Avoid having to run collectstatic before the unit test suite
# If we don't add these settings, then Django templates that can't
# find pipelined assets will raise a ValueError.
# http://stackoverflow.com/questions/12816941/unit-testing-with-django-pipeline
STATICFILES_STORAGE
=
'pipeline.storage.NonPackagingPipelineStorage'
STATIC_URL
=
"/static/"
PIPELINE_ENABLED
=
False
# Add split as another store for testing
MODULESTORE
[
'default'
][
'OPTIONS'
][
'stores'
]
.
append
(
{
...
...
lms/envs/test.py
View file @
680d5031
...
...
@@ -109,6 +109,13 @@ STATICFILES_DIRS += [
if
os
.
path
.
isdir
(
COMMON_TEST_DATA_ROOT
/
course_dir
)
]
# Avoid having to run collectstatic before the unit test suite
# If we don't add these settings, then Django templates that can't
# find pipelined assets will raise a ValueError.
# http://stackoverflow.com/questions/12816941/unit-testing-with-django-pipeline
STATICFILES_STORAGE
=
'pipeline.storage.NonPackagingPipelineStorage'
PIPELINE_ENABLED
=
False
update_module_store_settings
(
MODULESTORE
,
module_store_options
=
{
...
...
pavelib/utils/test/suites/nose_suite.py
View file @
680d5031
...
...
@@ -99,12 +99,6 @@ class SystemTestSuite(NoseTestSuite):
def
__enter__
(
self
):
super
(
SystemTestSuite
,
self
)
.
__enter__
()
if
not
self
.
fasttest
:
# TODO: Fix the tests so that collectstatic isn't needed ever
# add --skip-collect to this when the tests are fixed
args
=
[
self
.
root
,
'--settings=test'
]
call_task
(
'pavelib.assets.update_assets'
,
args
=
args
)
@property
def
cmd
(
self
):
cmd
=
(
...
...
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