

@override_settings(STATIC_ROOT='static', MEDIA_ROOT='media', LESS_PREPROCESS=True, LESS_BIN='lessc-bin', SASS_BIN='sass-bin', STYLUS_BIN='stylus-bin')
@patch('jingo_minify.helpers.time.time')
@patch('jingo_minify.helpers.os.path.getmtime')
@patch('jingo_minify.helpers.subprocess')
@patch('__builtin__.open', spec=True)
def test_compiled_css(open_mock, subprocess_mock, getmtime_mock, time_mock):
    jingo.env.from_string("{{ css('compiled', debug=True) }}").render()
    eq_(subprocess_mock.Popen.mock_calls, [call(['lessc-bin', 'static/css/less.less'], stdout=ANY), call(['sass-bin', 'static/css/sass.sass'], stdout=ANY), call(['sass-bin', 'static/css/scss.scss'], stdout=ANY)])
    subprocess_mock.call.assert_called_with('stylus-bin --include-css --include static/css < static/css/stylus.styl > static/css/stylus.styl.css', shell=True)

dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/tests.py test_compiled_css/original