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()
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)
def test_post_process_dry_run(self): default_collector.collect() processed_files = PipelineStorage().post_process({}, True) self.assertEqual(list(processed_files), [])
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), [])
def test_post_process_dry_run(self): processed_files = PipelineStorage().post_process({}, True) self.assertEqual(list(processed_files), [])