-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into stable/3.0.x
- Loading branch information
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import tempfile | ||
|
||
from django.core.management import call_command | ||
from django.test import TestCase, override_settings | ||
|
||
class TestCollectstatic(TestCase): | ||
""" | ||
Test manage.py collectstatic --noinput --link | ||
with different versions of STATICFILES_STORAGE. See | ||
https://github.com/sehmaschine/django-grappelli/issues/1022 | ||
""" | ||
|
||
def test_collect_static(self): | ||
for storage in [ | ||
"django.contrib.staticfiles.storage.StaticFilesStorage", | ||
"django.contrib.staticfiles.storage.ManifestStaticFilesStorage", | ||
]: | ||
with override_settings( | ||
STATICFILES_STORAGE=storage, | ||
STATIC_ROOT=tempfile.mkdtemp(), | ||
): | ||
call_command("collectstatic", "--noinput", "--link") |