2021-07-11 16:52:55 +02:00
|
|
|
# (c) 2021, Alexei Znamensky
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
2021-04-05 15:19:13 +02:00
|
|
|
- name: test failing dependency
|
|
|
|
mdepfail:
|
|
|
|
a: 123
|
|
|
|
ignore_errors: yes
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: assert failing dependency
|
|
|
|
assert:
|
|
|
|
that:
|
2021-07-16 20:06:35 +02:00
|
|
|
- result is failed
|
2021-04-05 15:19:13 +02:00
|
|
|
- '"Failed to import" in result.msg'
|
|
|
|
- '"nopackagewiththisname" in result.msg'
|
2021-07-16 20:06:35 +02:00
|
|
|
- '"ModuleNotFoundError:" in result.exception or "ImportError:" in result.exception'
|
2021-04-05 15:19:13 +02:00
|
|
|
- '"nopackagewiththisname" in result.exception'
|