Pytest-qgis

Latest version: v2.1.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.1.0

New Features

* Add `clean_qgis_layer` decorator back alongside with automatic cleaning [64](https://github.com/GispoCoding/pytest-qgis/pull/64)

Fixes

* [53](https://github.com/GispoCoding/pytest-qgis/pull/53) Allow using MagicMocks to mock layers without problems
* [60](https://github.com/GispoCoding/pytest-qgis/pull/60) Allows using CRS properly again
* [62](https://github.com/GispoCoding/pytest-qgis/pull/62) Map does no longer zoom to the first added layer upon processing the events when using `qgis_show_map` marker

2.0.0

New Features

* [45](https://github.com/GispoCoding/pytest-qgis/pull/45) Clean map layers automatically.
* [48](https://github.com/GispoCoding/pytest-qgis/pull/48) Add possibility to raise errors if there are warnings or errors in attribute form when adding feature.

Fixes

* [45](https://github.com/GispoCoding/pytest-qgis/pull/45) Ensure that the projection is set when replacing layers with projected ones.

Maintenance tasks

* [51](https://github.com/GispoCoding/pytest-qgis/pull/51) Change linting to use Ruff.
* [50](https://github.com/GispoCoding/pytest-qgis/pull/50) Migrate to pyproject.toml and upgrade development dependencies.

API Breaks

* [47](https://github.com/GispoCoding/pytest-qgis/pull/48) Remove deprecated functionality:
* `new_project()` fixture
* `module_qgis_bot()` fixture
* `clean_qgis_layer()` function
* [46](https://github.com/GispoCoding/pytest-qgis/pull/46) Use session scope in qgis_bot fixture
* [48](https://github.com/GispoCoding/pytest-qgis/pull/48) The `create_feature_with_attribute_dialog()` function now, by default, raises a ValueError when a created feature violates enforced attribute constraints.

1.3.5

* [34](https://github.com/GispoCoding/pytest-qgis/pull/34) Use tempfile instead of protected TempPathFactory in QGIS config path creation
* [39](https://github.com/GispoCoding/pytest-qgis/pull/39) Improve code style and CI
* [40](https://github.com/GispoCoding/pytest-qgis/pull/40) Improve showing map
* [42](https://github.com/GispoCoding/pytest-qgis/pull/42) Suppress errors when deleting temp dir

1.3.4

* [34](https://github.com/GispoCoding/pytest-qgis/pull/34): Use tempfile instead of protected TempPathFactory in QGIS config path creation

1.3.3

* [29](https://github.com/GispoCoding/pytest-qgis/pull/29): Release map canvas properly

1.3.2

* [23](https://github.com/GispoCoding/pytest-qgis/pull/23): Support QToolBar as an arg in iface.addToolBar

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.