From 5ad27edd6644c4686d49e2728dec6fd71e052356 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Thu, 7 Mar 2024 17:02:42 +0100 Subject: [PATCH] Release of 4.2.5 --- CHANGELOG.md | 4 ++++ lizmap/test/test_postgresql.py | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce9d4a92..eda5619e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 4.2.5 - 2024-03-07 + +* Improve checks for PostgreSQL layers + ## 4.2.4 - 2024-02-28 * Fix a Python error when saving the file if a layer was removed from the project and used in the configuration before diff --git a/lizmap/test/test_postgresql.py b/lizmap/test/test_postgresql.py index bff3bd08..8c9407d3 100644 --- a/lizmap/test/test_postgresql.py +++ b/lizmap/test/test_postgresql.py @@ -29,9 +29,6 @@ PG_USER, ) CREDENTIALS = True - # Because on Desktop - from qgis.testing import start_app - start_app() except ImportError: CREDENTIALS = False PG_HOST = '' @@ -40,6 +37,11 @@ PG_USER = '' PG_DATABASE = '' +if CREDENTIALS: + # Because on Desktop + from qgis.testing import start_app + start_app() + def skip_test(): if os.getenv("CI"):