From ce9be475b5fe1404a3ef32843857636b8a337e76 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:34:50 +0200 Subject: [PATCH 1/3] Add scale factor flag to run_tests script --- run_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run_tests.py b/run_tests.py index cedf071b..b9687aa9 100755 --- a/run_tests.py +++ b/run_tests.py @@ -18,6 +18,7 @@ if __name__ == "__main__": args = parser.parse_args() env = os.environ.copy() + env["QT_SCALE_FACTOR"] = "1.0" cmd = [sys.executable, "-m", "pytest", "-vv"] if args.o: From 19aadd93a0c057a91d452b2326fa7013cb6ecbfe Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:38:31 +0200 Subject: [PATCH 2/3] Add comment to test --- tests/test_gui/test_gui_theme.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_gui/test_gui_theme.py b/tests/test_gui/test_gui_theme.py index 68b75fd4..aa2af3cf 100644 --- a/tests/test_gui/test_gui_theme.py +++ b/tests/test_gui/test_gui_theme.py @@ -431,11 +431,13 @@ def testGuiTheme_LoadIcons(): assert qIcon.isNull() is False # Load it as a pixmap with a size + # If this part of the test fails, you may need to set the + # environment variable: QT_SCALE_FACTOR=1 qPix = iconCache.getPixmap("add", (50, 50)) assert isinstance(qPix, QPixmap) assert qPix.isNull() is False - assert qPix.width() == 50 - assert qPix.height() == 50 + assert qPix.width() == 50, "If this fails, make sure QT_SCALE_FACTOR=1" + assert qPix.height() == 50, "If this fails, make sure QT_SCALE_FACTOR=1" # Load app icon qIcon = iconCache.getIcon("novelwriter") From be8ec6b4aec40fae419af03498f3d9a7f63658c5 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Mon, 18 Aug 2025 20:42:36 +0200 Subject: [PATCH 3/3] Update package files --- pyproject.toml | 1 - setup/description_pypi.md | 6 +++--- setup/iss_license.txt | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3610e012..5860b722 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,7 +124,6 @@ markers = [ "base: Base classes tests", "core: Core classes tests", "gui: GUI classes tests", - "serial", ] [tool.coverage.run] diff --git a/setup/description_pypi.md b/setup/description_pypi.md index 0221db8d..23c85909 100644 --- a/setup/description_pypi.md +++ b/setup/description_pypi.md @@ -10,9 +10,9 @@ synchronisation tools. All text is saved as plain text files with a meta data he project structure is stored in a single project XML file, and other meta data is primarily saved as JSON files. -The application is written with Python 3 (3.10+) using Qt6 and PyQt6 (5.10+). It is developed on -Linux, but should in principle work fine on other operating systems as well as long as dependencies -are met. It is regularly tested on Debian and Ubuntu Linux, Windows, and MacOS. +The application is written with Python 3 using Qt6 and PyQt6. It is developed on Linux, but should +in principle work fine on other operating systems as well as long as dependencies are met. It is +regularly tested on Debian and Ubuntu Linux, Windows, and MacOS. novelWriter is developed and maintained by [Veronica Berglyd Olsen](https://github.com/vkbo). diff --git a/setup/iss_license.txt b/setup/iss_license.txt index fe023cb4..dbcf6b7d 100644 --- a/setup/iss_license.txt +++ b/setup/iss_license.txt @@ -1,6 +1,6 @@ novelWriter License -Copyright (C) 2018-2025 Veronica Berglyd Olsen +Copyright (C) Veronica Berglyd Olsen and novelWriter contributors License: GPL v3+ This program is free software: you can redistribute it and/or modify