Debian Codegraph @

ansible_collections/community/general/tests/unit/plugins/modules/test_django_loaddata.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: command_success
10 input:
11 settings: whatever.settings
12 fixtures: /tmp/mydata.json
13 mocks:
14 run_command:
15 - command: [/testbin/python, -m, django, --version]
16 environ: *env-def
17 rc: 0
18 out: "5.1.2\n"
19 err: ''
20 - command:
21 - /testbin/python
22 - -m
23 - django
24 - loaddata
25 - --no-color
26 - --settings=whatever.settings
27 - --database=default
28 - --format
29 - json
30 - /tmp/mydata.json
31 environ: *env-def
32 rc: 0
33 out: "whatever\n"
34 err: ''