Closed Joonalai closed 2 years ago
Maybe not related to this PR but when trying to run tests I got an ImportError from pytest that atomicwrites
was not found. That is a new pytest dependency that somewhy was not installed in my venv. I created a separate PR to update the dependencies: https://github.com/GispoCoding/pytest-qgis/pull/6.
Could you wrap the usage of db.gpkg to a fixture that creates a copy of it before passing it to tests. Now when running tests and accessing the geopackage it gets modified and git wants therefore add changes to the index.
@LKajan maybe we should leave the pip-tools part of the pre-commit out of CI?
@LKajan maybe we should leave the pip-tools part of the pre-commit out of CI?
Yes, it looks to be better so. Now generated dependencies are so different on different platforms.
This PR:
qgis_qui_enabled
to enable or disable GUI using QT_QPA_PLATFORM environment variableqgis_disable_gui
command line option can be used to overrideqgis_canvas_width
andqgis_canvas_height
qgis_disable_init
command line option to prevent QGIS application from initializing (this is used mainly to maketest_ini_*
tests work.qgis_show_map
to enable visual inspections of the QGIS map with all the datasets. This currently has few "bugs":clean_qgis_layer
which can be used withQgsMapLayer
fixtures to ensure that they are cleaned properly if they are used but not added to theQgsProject
. This is only needed with layers with other than memory provider.qgis_version
to show current QGIS version as integer (eq. 3.10 == 31000).