mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
* add inventory plugin unit test `test_verify_file`
* fix typos in `test_verify_file_bad_config` unit test
(cherry picked from commit f44300cec5
)
Co-authored-by: Rémy Keil <remy.keil@gmail.com>
This commit is contained in:
parent
92ccc6f013
commit
ffdef00a6a
5 changed files with 32 additions and 2 deletions
|
@ -21,6 +21,12 @@ def inventory():
|
|||
return r
|
||||
|
||||
|
||||
def test_verify_file(tmp_path, inventory):
|
||||
file = tmp_path / "foobar.proxmox.yml"
|
||||
file.touch()
|
||||
assert inventory.verify_file(str(file)) is True
|
||||
|
||||
|
||||
def test_verify_file_bad_config(inventory):
|
||||
assert inventory.verify_file('foobar.proxmox.yml') is False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue