Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
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
OpenEdx
django-pipeline
Commits
ad198fac
Commit
ad198fac
authored
Feb 22, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix post_process to work with recent changes in staticfiles
parent
6662bfd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
pipeline/storage.py
+5
-1
tests/tests/storage.py
+5
-5
tox.ini
+9
-9
No files found.
pipeline/storage.py
View file @
ad198fac
...
...
@@ -38,7 +38,11 @@ class PipelineStorage(StaticFilesStorage):
super_class
=
super
(
PipelineStorage
,
self
)
if
hasattr
(
super_class
,
'post_process'
):
return
super_class
.
post_process
(
paths
,
dry_run
,
**
options
)
return
paths
return
[
(
path
,
path
,
True
)
for
path
in
paths
]
class
PipelineCachedStorage
(
PipelineStorage
,
CachedStaticFilesStorage
):
...
...
tests/tests/storage.py
View file @
ad198fac
...
...
@@ -29,11 +29,11 @@ class StorageTest(TestCase):
'css/first.css'
:
(
self
.
storage
,
'css/first.css'
),
'images/arrow.png'
:
(
self
.
storage
,
'images/arrow.png'
)
}))
self
.
assertEqual
(
processed_files
.
keys
()
,
[
'css/first.css'
,
'images/arrow.png'
,
'testing.css'
,
'scripts.css'
self
.
assertEqual
(
processed_files
,
[
(
'css/first.css'
,
'css/first.css'
,
True
)
,
(
'images/arrow.png'
,
'images/arrow.png'
,
True
)
,
(
'testing.css'
,
'testing.css'
,
True
)
,
(
'scripts.css'
,
'scripts.css'
,
True
)
])
def
tearDown
(
self
):
...
...
tox.ini
View file @
ad198fac
...
...
@@ -17,7 +17,7 @@ basepython = python2.5
deps
=
Django
=
=1.2.4
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py26-1.2.X]
...
...
@@ -25,7 +25,7 @@ basepython = python2.6
deps
=
Django
=
=1.2.4
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py27-1.2.X]
...
...
@@ -33,7 +33,7 @@ basepython = python2.7
deps
=
Django
=
=1.2.4
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py25-1.3.X]
...
...
@@ -41,7 +41,7 @@ basepython = python2.5
deps
=
Django
=
=1.3.1
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py26-1.3.X]
...
...
@@ -49,7 +49,7 @@ basepython = python2.6
deps
=
Django
=
=1.3.1
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py27-1.3.X]
...
...
@@ -57,7 +57,7 @@ basepython = python2.7
deps
=
Django
=
=1.3.1
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py25]
...
...
@@ -73,7 +73,7 @@ basepython = python2.6
deps
=
https://github.com/django/django/zipball/master
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:py27]
...
...
@@ -81,7 +81,7 @@ basepython = python2.7
deps
=
https://github.com/django/django/zipball/master
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:pypy]
...
...
@@ -89,7 +89,7 @@ basepython = pypy
deps
=
https://github.com/django/django/zipball/master
mock
django-staticfiles
https://github.com/jezdez/django-staticfiles/zipball/master
unittest2
[testenv:docs]
...
...
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