You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/flask-themes/files/fixtests.patch

24 lines
1.0 KiB

diff -ur Flask-Themes-0.1.3.orig/tests/test-themes.py Flask-Themes-0.1.3/tests/test-themes.py
--- tests/test-themes.py 2011-07-14 06:36:33.000000000 +0800
+++ tests/test-themes.py 2013-06-10 18:20:25.901480529 +0800
@@ -129,8 +129,8 @@
with app.test_request_context('/'):
assert template_exists('hello.html')
- assert template_exists('_themes/cool/hello.html')
- assert not template_exists('_themes/plain/hello.html')
+ assert template_exists('cool/hello.html')
+ assert not template_exists('themes/plain/hello.html')
def test_loader(self):
app = Flask(__name__)
@@ -140,7 +140,7 @@
with app.test_request_context('/'):
if USING_BLUEPRINTS:
src = themes_blueprint.jinja_loader.get_source(
- app.jinja_env, '_themes/cool/hello.html'
+ app.jinja_env, 'cool/hello.html'
)
else:
src = themes_mod.jinja_loader.get_source(