Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/odbc/tasks/no_pyodbc.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Testing the module without pyodbc
7 odbc:
8 dsn: "Test"
9 query: "SELECT * FROM nothing"
10 ignore_errors: true
11 register: results
12
13 - assert:
14 that:
15 - results is failed
16 - "'Failed to import the required Python library (pyodbc) on' in results.msg"