mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
[PR #9271/50b25f8c backport][stable-9] random_words integration tests: avoid test failure due to valid result (#9273)
random_words integration tests: avoid test failure due to valid result (#9271)
Avoid test failure due to valid result.
(cherry picked from commit 50b25f8c01)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
- result4[0] | length >= 17
|
- result4[0] | length >= 17
|
||||||
- result4[0] | length <= 29
|
- result4[0] | length <= 29
|
||||||
- result4[0] | regex_findall("[A-Z]") | length == 3
|
- result4[0] | regex_findall("[A-Z]") | length == 3
|
||||||
- result4[0].count("-") == 2
|
# If one of the random words is 't-shirt', there are more than 2 dashes...
|
||||||
|
- result4[0].count("-") == 2 or "t-shirt" in result4[0].lower()
|
||||||
- result5 | length == 1
|
- result5 | length == 1
|
||||||
- result5[0] | length == 15
|
- result5[0] | length == 15
|
||||||
|
|||||||
Reference in New Issue
Block a user