Commit f0d51068 by Timothée Peignier

style check

parent 80b8b78c
......@@ -18,7 +18,7 @@ class CompilerTest(TestCase):
def setUp(self):
self.compiler = Compiler()
self.old_compilers = settings.PIPELINE_COMPILERS
settings.PIPELINE_COMPILERS = ['tests.tests.compiler.DummyCompiler',]
settings.PIPELINE_COMPILERS = ['tests.tests.compiler.DummyCompiler']
def test_output_path(self):
output_path = self.compiler.output_path("js/helpers.coffee", "js")
......
import base64
import os
from mock import patch
......@@ -39,10 +38,10 @@ class CompressorTest(TestCase):
@patch.object(base64, 'b64encode')
def test_encoded_content(self, mock):
encoded = self.compressor.encoded_content('images/arrow.png')
self.compressor.encoded_content('images/arrow.png')
self.assertTrue(mock.called)
mock.reset_mock()
encoded = self.compressor.encoded_content('images/arrow.png')
self.compressor.encoded_content('images/arrow.png')
self.assertFalse(mock.called)
def test_relative_path(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment