[PR #10214/f7f2db36 backport][stable-10] Fix module_helper tests (#10216)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.15) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

Fix module_helper tests (#10214)

Fix module_helper tests.

(cherry picked from commit f7f2db365e)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2025-06-06 22:29:56 +02:00 committed by GitHub
parent 30c5de00e9
commit cea886562a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,14 @@
deprecator:
resolved_name: community.general
type: collection
# Latest version:
attr2_depr_dict_dt2:
msg: Attribute attr2 is deprecated
version: 9.9.9
collection_name: community.general
deprecator:
resolved_name: community.general
type: ~
- name: test msimpleda 1
msimpleda:
@ -26,7 +34,12 @@
that:
- simple1.a == 1
- simple1.attr1 == "abc"
- ("deprecations" not in simple1) or (attr2_depr_dict not in simple1.deprecations and attr2_depr_dict_dt not in simple1.deprecations)
- >-
("deprecations" not in simple1) or (
attr2_depr_dict not in simple1.deprecations and
attr2_depr_dict_dt not in simple1.deprecations and
attr2_depr_dict_dt2 not in simple1.deprecations
)
- name: test msimpleda 2
msimpleda:
@ -43,4 +56,7 @@
- simple2.a == 2
- simple2.attr2 == "def"
- '"deprecations" in simple2'
- attr2_depr_dict in simple2.deprecations or attr2_depr_dict_dt in simple2.deprecations
- >-
attr2_depr_dict in simple2.deprecations or
attr2_depr_dict_dt in simple2.deprecations or
attr2_depr_dict_dt2 in simple2.deprecations