Debian Codegraph @

ansible_collections/community/general/tests/unit/plugins/modules/test_django_check.yaml

raw
1 # Copyright (c) Alexei Znamensky ([email protected])
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 ---
6 anchors:
7 environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
8 test_cases:
9 - id: success
10 input:
11 settings: whatever.settings
12 output:
13 version: 5.1.2
14 mocks:
15 run_command:
16 - command: [/testbin/python, -m, django, --version]
17 environ: *env-def
18 rc: 0
19 out: "5.1.2\n"
20 err: ''
21 - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings]
22 environ: *env-def
23 rc: 0
24 out: "whatever\n"
25 err: ''
26 - id: multiple_databases
27 input:
28 settings: whatever.settings
29 database:
30 - abc
31 - def
32 output:
33 version: 5.1.2
34 mocks:
35 run_command:
36 - command: [/testbin/python, -m, django, --version]
37 environ: *env-def
38 rc: 0
39 out: "5.1.2\n"
40 err: ''
41 - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, --database, abc, --database, def]
42 environ: *env-def
43 rc: 0
44 out: "whatever\n"
45 err: ''