From 8ea133b04534a282fd209bc6cf2580a600c9d150 Mon Sep 17 00:00:00 2001 From: Hamid Feizabadi Date: Mon, 18 Oct 2021 15:27:35 +0330 Subject: [PATCH] Release version 2.2.0 --- README.md | 2 +- setup.py | 2 +- test.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 34ff008..3870400 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,6 @@ TODO - [x] Test cases - [x] Route (or URL rule) exemption - [x] Caching (in progress) -- [In progress] Minify inline CSS +- [x] Minify inline CSS - [ ] Minify inline Javascript - [ ] Type hints diff --git a/setup.py b/setup.py index 9d7468d..324f346 100755 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( name='Flask-HTMLmin', - version='2.1.0', + version='2.2.0', url='https://github.com/hamidfzm/Flask-HTMLmin', license='BSD-3-Clause', author='Hamid FzM', diff --git a/test.py b/test.py index ff2cf38..3b5988d 100644 --- a/test.py +++ b/test.py @@ -7,7 +7,7 @@ app = Flask(__name__) app.config['TESTING'] = True -app.config['MINIFY_PAGE'] = True +app.config['MINIFY_HTML'] = True htmlmin = HTMLMIN(app=app) json_resp = dict( @@ -53,7 +53,6 @@ def client(): def test_html_minify(client): """ testing HTML minified response """ resp = client.get('/').data - print(resp) assert b' \

HTML

' == resp