Pytest-blender

Latest version: v3.0.5

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

Scan your dependencies

Page 1 of 3

3.0.5

3.0.4

Chore:

- Declare official support for Python 3.11

3.0.3

Bug fixes:

- More reliable way to obtain Blender's Python interpreter path.

3.0.2

Bug fixes:

- Fix `pytest-blender` CLI outputting `None` on Windows.
- Fix error handling unsupported signal on Windows.

3.0.1

Bug fixes:

- Fix uncaught exceptions enabling invalid addons.
- Prevent propagation of `pytest -p pytest-blender` CLI argument.

3.0.0

Breaking changes

- `addon_module_names` kwarg of [`install_addons_from_dir`] fixture has been renamed to `addons_ids`.

New features
- Add [CLI and configuration files options](https://github.com/mondeja/pytest-blender#configuration) for easier setup.

Enhancements

- Add environment variables propagation to Blender execution.
- Allow to test directly a Python package located inside the directory passed to [`blender-addons-dirs`] or [`install_addons_from_dir`] without zipping it previously.

Migration guide from v1 or v2

Most likely you don't need to use the fixtures [`install_addons_from_dir`], [`disable_addons`] and [`uninstall_addons`] because now you can define the addons to install using the [`blender-addons-dirs`] and [`blender-addons-cleaning`] configuration options:

- Replace [`install_addons_from_dir`] fixture by [`blender-addons-dirs`] configuration option.
- Replace [`disable_addons`] fixture by [`blender-addons-cleaning`] configuration option with `disable` value.
- Replace [`uninstall_addons`] fixture by [`blender-addons-cleaning`] configuration option with `uninstall` value, but is the default, so you don't need to define it.
- If you're installing the addons with [`install_addons_from_dir`] fixture in your *conftest.py* file but not removing them after the test suite execution, you can replace it by [`blender-addons-cleaning`] configuration option with the value `keep`.

* You can replace all the logging configuration of `logging.getLogger("pytest_blender")` by the [`pytest-blender-debug`] configuration option.

[`install_addons_from_dir`]: https://github.com/mondeja/pytest-blender#install_addons_from_dir
[`disable_addons`]: https://github.com/mondeja/pytest-blender#disable_addons
[`uninstall_addons`]: https://github.com/mondeja/pytest-blender#uninstall_addons
[`blender-addons-dirs`]: https://github.com/mondeja/pytest-blender#blender-addons-dirs
[`blender-addons-cleaning`]: https://github.com/mondeja/pytest-blender#blender-addons-cleaning
[`pytest-blender-debug`]: https://github.com/mondeja/pytest-blender#pytest-blender-debug

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.