-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import tempfile | ||
|
||
from django.core.management import call_command | ||
from django.test import SimpleTestCase | ||
|
||
|
||
class TestStaticFiles(SimpleTestCase): | ||
|
||
def test_manifest_static_files_storage(self): | ||
""" | ||
Test that TinyMCE's static files can be collected | ||
when using ManifestStaticFilesStorage - missing | ||
.map files can cause this to fail if the static | ||
files refer to them (GH issue #460) | ||
""" | ||
with tempfile.TemporaryDirectory() as temp_dir: | ||
with self.settings( | ||
STATIC_ROOT=temp_dir, | ||
STATICFILES_STORAGE="django.contrib.staticfiles.storage.ManifestStaticFilesStorage", | ||
): | ||
result = call_command("collectstatic", "--no-input") | ||
self.assertRegex(result, r"\d+ static files copied") |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.