mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 22:30:04 -07:00
python_requirements_info - fail when version operator used without version (#3785)
* python_requirements_info - fail when version operator used without version * added changelog fragment * simplified way of achieving the same result
This commit is contained in:
parent
1cc6938ae3
commit
59c1859fb3
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