pytest-ansible

A pytest plugin that enables the use of ansible in tests, enables the use of pytest as a collection unit test runner, and exposes molecule scenarios through a pytest fixture.

MIT License

Downloads
499K
Stars
177
Committers
26

Bot releases are visible (Hide)

pytest-ansible - v3.1.0

Published by github-actions[bot] over 1 year ago

Minor Changes

  • Enable unit test support by default (#117) @cidrblock
  • feature: integrate pytest-ansible-units (#114) @Ruchip16

Bugfixes

  • ruff: Address TCH rule (#113) @Ruchip16
  • Add invalid-name check (#111) @Ruchip16
  • Add no-member check (#110) @Ruchip16
  • Enable more ruff checks (#109) @ssbarnea
  • Use correct pytest cli (#107) @ssbarnea
pytest-ansible - v3.0.0

Published by github-actions[bot] over 1 year ago

Major Changes

  • Fix import error from Ansible-core 2.15 change (#103) @ssbarnea
  • Support python 3.10 and 3.11 (#84) @ssbarnea
  • Support for Ansible 2.12 and 2.13 (#67) @CFSNM

Minor Changes

  • Refactor packaging and CI/CD setup (#72) @ssbarnea

Bugfixes

  • Add used-before-assignment check (#106) @Ruchip16
  • Add use-dict-literal (#104) @Ruchip16
  • Fix readme badges (#102) @ssbarnea
  • Add using-constant-test, use-list-literal & useless-object-inheritance check (#100) @Ruchip16
  • Add unused-import & wrong-import-order check (#98) @Ruchip16
  • Add undefined-loop-variable & unnecessary-comprehension check (#96) @Ruchip16
  • Add super-with-arguments & too-few-public-methods check (#95) @Ruchip16
  • Add not-callable & pointless-statement check (#94) @Ruchip16
  • Add no-else-return check (#93) @Ruchip16
  • Add no-else-raise check (#92) @Ruchip16
  • Add implicit-str-concat & missing-class-docstring check (#91) @Ruchip16
  • Add consider-using-f-string check (#90) @Ruchip16
  • Enable prettier (#86) @ssbarnea
  • Enable isort via pre-commit (#83) @cidrblock
  • Remove outdated compatibility code (#79) @ssbarnea
  • Stop using standalone mock library (#78) @ssbarnea
  • Enable mypy (#77) @ssbarnea
  • Enable pylint (#76) @ssbarnea
  • Enable flake8 (#75) @ssbarnea
  • Enable black (#74) @ssbarnea
  • Fixing hosts in extra inventory (#68) @CFSNM
  • support extra inventory in pytest-ansible (#64) @CFSNM
  • Bumped pytest-ansible version to 2.3.0. Also removed ansible 2.8, and replaced python 3.6 by python 3.9 (#65) @CFSNM
  • Revert "Add support to ansible inventory env var" (#61) @thenets
  • Add support to ansible inventory env var (#60) @thenets
pytest-ansible - v2.2.4 Bugfixes around verbosity

Published by kdelee over 3 years ago

pytest-ansible -

Published by kdelee almost 4 years ago

Contains bug fixes and fixes to tests

Bug fixes:

  • v28: Ensure become and become_user params are honored
  • Capture module failure in class ModuleResult
  • Fix has_module for non-builtin modules
pytest-ansible - Fix ansible import for newer versions

Published by kdelee about 5 years ago

Also fix some stale unit tests