コード例 #1
0
ファイル: storage.py プロジェクト: nttks/django-pipeline
 def setUp(self):
     settings.PIPELINE_CSS = {
         'testing': {
             'source_filenames': (
                 'css/first.css',
                 'css/third.css',
             ),
             'manifest': False,
             'output_filename': 'testing.css',
         }
     }
     settings.PIPELINE_JS_COMPRESSOR = None
     settings.PIPELINE_CSS_COMPRESSOR = None
     self.storage = PipelineStorage()
コード例 #2
0
 def test_post_process(self):
     default_collector.collect()
     storage = PipelineStorage()
     processed_files = storage.post_process({})
     self.assertTrue(('screen.css', 'screen.css', True) in processed_files)
     self.assertTrue(('scripts.js', 'scripts.js', True) in processed_files)
コード例 #3
0
 def test_post_process_dry_run(self):
     default_collector.collect()
     processed_files = PipelineStorage().post_process({}, True)
     self.assertEqual(list(processed_files), [])
コード例 #4
0
 def test_post_process_dry_run(self):
     with pipeline_settings(PIPELINE_JS_COMPRESSOR=None,
                            PIPELINE_CSS_COMPRESSOR=None):
         processed_files = PipelineStorage().post_process({}, True)
         self.assertEqual(list(processed_files), [])
コード例 #5
0
 def test_post_process_dry_run(self):
     processed_files = PipelineStorage().post_process({}, True)
     self.assertEqual(list(processed_files), [])