mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user