mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
* python_requirements_info - fail when version operator used without version
* added changelog fragment
* simplified way of achieving the same result
(cherry picked from commit 59c1859fb3
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
35fd4700bf
commit
3d1ca5638b
3 changed files with 16 additions and 2 deletions
|
@ -25,3 +25,15 @@
|
|||
that:
|
||||
- "'installed' in dep_info.valid.pip"
|
||||
- "'notreal' in dep_info.not_found"
|
||||
|
||||
- name: wrong specs
|
||||
python_requirements_info:
|
||||
dependencies:
|
||||
- ansible<
|
||||
register: wrong_spec1
|
||||
ignore_errors: true
|
||||
|
||||
- name: ensure wrong specs return error
|
||||
assert:
|
||||
that:
|
||||
- wrong_spec1 is failed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue