def test_get_js_files(self): """ Should return a list of javascript files from media/common/js_includes.xml """ from madrona.common import assets files = assets.get_js_files() self.assertEquals(files.__class__.__name__, 'list') self.assertTrue(len(files) > 0)
from madrona.common import assets COMPRESS_CSS = { 'application': { 'source_filenames': assets.get_css_files(), 'output_filename': 'common/css/madrona.r?.css', 'extra_context': { 'media': 'all' } } } COMPRESS_JS = { 'application': { 'source_filenames': assets.get_js_files(), 'output_filename': 'madrona.r?.js' }, 'tests': { 'source_filenames': assets.get_js_test_files(), 'output_filename': 'madrona_tests.r?.js' } } COMPRESS_VERSION = True COMPRESS_AUTO = True GOOGLE_ANALYTICS_MODEL = True MIDDLEWARE_CLASSES = ( # GZip speeds up downloads by compressing on the fly