Skip to content

Releases: inmanta/pytest-inmanta

Version 2.0.0

24 Jan 09:30
Compare
Choose a tag to compare

New Features

  • Added support for testing v2 modules.
  • Extended to be compatible with inmanta-core>=6
  • Added support for custom inmanta_reset_state method to clean up stateful modules between compiles
  • Ensure that projects are compiled using a separate venv.
  • Fixed typing issue for filter_args in different method of the Project class.

Breaking changes

  • pytest-inmanta now keeps inmanta_plugins submodules alive across compiles. As a result, stateful modules must implement custom state cleanup logic as described in the README.

Version 1.6.0

18 Jun 09:12
Compare
Choose a tag to compare

New Features

  • Export mypy types
  • Added the ability to assert the expected 'change' of a deploy
  • Compiled models are logged (debug level), with line numbers (#199)

Version 1.5.2

15 Apr 16:04
Compare
Choose a tag to compare
v1.5.2

Release: 1.5.2

Version 1.4.0

12 Oct 14:13
Compare
Choose a tag to compare

V 1.4.0 (20-10-12)

New Features

  • Added meaningful error message when --venv points to a non-existing directory (#62)
  • Added inmanta_plugins fixture to make abstraction of required module reloading when the compiler project is reset (related to #49)
  • Added deprecation warning for project_no_plugins fixture in favor of INMANTA_TEST_NO_LOAD_PLUGINS environment variable (#66)
  • Added resource unittest::IgnoreResource.
  • Improve documentation of options (#67)

Bug fixes

  • Ensure that cache is closed completely (#57)
  • Fix incompatibility with pytest 6.0.0
  • Fixed plugin loading compatibility with compiler's import mechanism (#46, #49)

Version 1.3.0

03 Jun 10:58
Compare
Choose a tag to compare

Changes in this release:

Added

  • INMANTA_TEST_NO_LOAD_PLUGINS environment variable as workaround for #49

Version 1.2.0

26 May 13:03
Compare
Choose a tag to compare

Changes in this release:

Added

  • Added project_no_plugins fixture as workaround for plugins being loaded multiple times (#49)

Fixed

  • Fixed status field on dryrun_resource (#53)
  • Fixed error when running tests for module that imports other modules from its plugins

Version 1.1.0

11 May 12:38
Compare
Choose a tag to compare

Changes in this release:

Added

  • Added --use-module-in-place option (#30)
  • Added support to test regular functions and classes (#37)

Fixed

  • Close handler caches on cleanup (#42)

Version 1.0.0

11 May 12:19
Compare
Choose a tag to compare

Changes in this release:

Added

  • Added support to get logs from handler (#35)
  • Added support to specify multiple --repo-path options (#38)
  • Added --install_mode option

Version 0.9.0

27 Dec 11:01
Compare
Choose a tag to compare

Changes in this release

Added

  • Added support to retrieve scopes in project fixture.
  • Test the serialization/deserialization of resources.

Fixed

  • Ensure that the project fixture doesn't leak any data across test cases.

Version 0.8.0

23 Sep 09:06
Compare
Choose a tag to compare

Changes in this release

  • Add support for skip and fail through data global