Commit b396b4e0 by Timothée Peignier

separate construct_asset_path tests

parent 980dd0d3
......@@ -31,4 +31,3 @@ STATIC_ROOT = local_path('assets')
TEMPLATE_DIRS = (
local_path('templates'),
)
......@@ -94,6 +94,7 @@ class CompressorTest(TestCase):
"css/plugins/gallery.css")
self.assertEquals(asset_path, "http://localhost/static/images/sprite.png")
def test_construct_asset_path_relative(self):
asset_path = self.compressor.construct_asset_path("../../images/sprite.png",
"css/plugins/gallery.css",
absolute_asset_paths=False)
......
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