2021-07-11 16:34:59 +02:00
|
|
|
# (c) 2021, Alexei Znamensky
|
2022-08-05 12:28:29 +02:00
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2021-07-11 16:34:59 +02:00
|
|
|
|
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 19:29:00 +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 19:29:00 +02:00
|
|
|
- '"ModuleNotFoundError:" in result.exception or "ImportError:" in result.exception'
|
2021-04-05 15:19:13 +02:00
|
|
|
- '"nopackagewiththisname" in result.exception'
|