Jan-Jaap Driessen avatar Jan-Jaap Driessen committed ce23ee4

Revert 249, not needed.

Comments (0)

Files changed (2)


         if self._versioning:
-        result = path.pop(0)
-        for segment in path:
-            if not result.endswith('/'):
-                result += '/'
-            result += segment
-        return result
+        return '/'.join(path)
     def render(self):
         """Render needed resource inclusions.


 <script type="text/javascript" src="http://localhost/static/fanstatic/foo/a.js"></script>
 <script type="text/javascript" src="http://localhost/static/fanstatic/foo/c.js"></script>'''
-    needed = NeededResources(base_url='/')
-    needed.need(y1)
-    assert needed.render() == '''\
-<link rel="stylesheet" type="text/css" href="/fanstatic/foo/b.css" />
-<script type="text/javascript" src="/fanstatic/foo/a.js"></script>
-<script type="text/javascript" src="/fanstatic/foo/c.js"></script>'''
 def test_empty_base_url_and_publisher_signature():
     ''' When the base_url and publisher_signature are both empty strings,
     render a URL without them. '''
     r1 = Resource(foo, 'f.js')
     assert normalize_resource(foo, r1) == r1
 # XXX tests for hashed resources when this is enabled. Needs some plausible
 # directory to test for hashes
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.