Mercurial > piecrust2
diff tests/mockutil.py @ 32:43091c9837bf
Fix problems with asset URLs.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 19 Aug 2014 14:30:19 -0700 |
parents | 644869022b6e |
children | e4c345dcf33c |
line wrap: on
line diff
--- a/tests/mockutil.py Tue Aug 19 12:48:00 2014 -0700 +++ b/tests/mockutil.py Tue Aug 19 14:30:19 2014 -0700 @@ -103,7 +103,7 @@ contents = contents or "A test asset." url_base, ext = os.path.splitext(page_url) dirname = url_base + '-assets' - return self.withAsset('_content/pages/%s/%s' % (dirname, name), + return self.withAsset('_content/%s/%s' % (dirname, name), contents)