Use new tools from community.internal_test_tools. (#1061) (#1062)

(cherry picked from commit a1e9412bed)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-03-22 12:17:26 +01:00
committed by GitHub
parent f2f0492678
commit 64997ca907
2 changed files with 63 additions and 37 deletions
@@ -13,6 +13,7 @@ from ansible.parsing.dataloader import DataLoader
from ansible.template import Templar
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import create_autospec
from ansible_collections.community.internal_test_tools.tests.unit.utils.trust import make_trusted
from ansible_collections.community.docker.plugins.inventory.docker_containers import InventoryModule
@@ -258,7 +259,7 @@ def test_populate_filter(inventory, mocker):
'groups': {},
'keyed_groups': {},
'filters': [
{'include': 'docker_state.Running is true'},
{'include': make_trusted('docker_state.Running is true')},
{'exclude': True},
],
}))