details: https://code.tryton.org/communication/website/commit/c2c11a4581ea
branch: default
user: Cédric Krier <[email protected]>
date: Tue Nov 24 01:12:18 2026 +0100
description:
Fix GET route tests
diffstat:
tests/test_app.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e10e1afb005a -r c2c11a4581ea tests/test_app.py
--- a/tests/test_app.py Fri Oct 02 16:13:14 2026 +0200
+++ b/tests/test_app.py Tue Nov 24 01:12:18 2026 +0100
@@ -104,7 +104,8 @@
self.client.get(app.url_for(rule.endpoint))
) as response:
if 200 <= response.status_code < 300:
- if response.mimetype == 'test/html':
+ if (response.mimetype == 'text/html'
+ and response.data):
document = self.parser.parse(response.data)
self.assertStatic(document)
self.assertHref(document)