diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/flask-babelex/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flask-babelex/files')
-rw-r--r-- | dev-python/flask-babelex/files/flask-babelex-0.9.3-tests-fix.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/flask-babelex/files/flask-babelex-0.9.3-tests-fix.patch b/dev-python/flask-babelex/files/flask-babelex-0.9.3-tests-fix.patch new file mode 100644 index 000000000000..5b11f1ae6e46 --- /dev/null +++ b/dev-python/flask-babelex/files/flask-babelex-0.9.3-tests-fix.patch @@ -0,0 +1,41 @@ +From d56d2c9a42c291a3592f3d7977b4dcca9ac755b3 Mon Sep 17 00:00:00 2001 +From: Jeffrey Kyllo <jkyllo@echospiral.com> +Date: Mon, 25 Jan 2016 14:00:04 +0000 +Subject: [PATCH] Updated DateFormattingTestCase with new datetime formats from + babel. + +--- + tests/tests.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/tests.py b/tests/tests.py +index 63c2ecf..2df68ee 100644 +--- a/tests/tests.py ++++ b/tests/tests.py +@@ -35,7 +35,7 @@ def test_basics(self): + with app.test_request_context(): + app.config['BABEL_DEFAULT_LOCALE'] = 'de_DE' + assert babel.format_datetime(d, 'long') == \ +- '12. April 2010 15:46:00 MESZ' ++ '12. April 2010 um 15:46:00 MESZ' + + def test_init_app(self): + b = babel.Babel() +@@ -57,7 +57,7 @@ def test_init_app(self): + with app.test_request_context(): + app.config['BABEL_DEFAULT_LOCALE'] = 'de_DE' + assert babel.format_datetime(d, 'long') == \ +- '12. April 2010 15:46:00 MESZ' ++ '12. April 2010 um 15:46:00 MESZ' + + def test_custom_formats(self): + app = flask.Flask(__name__) +@@ -95,7 +95,7 @@ def select_timezone(): + the_timezone = 'Europe/Vienna' + + with app.test_request_context(): +- assert babel.format_datetime(d) == '12.04.2010 15:46:00' ++ assert babel.format_datetime(d) == '12.04.2010, 15:46:00' + + def test_refreshing(self): + app = flask.Flask(__name__) |