You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/cli
Alex Willmer 163819efa2
tests: Fix `test_ansible_version()` when run within a git checkout (#78636)
When running the unit tests locally, in a git clone, `ansible --test`
prints additional information about the git revision, e.g.

```
~/src/ansible$ ansible --version
ansible 2.10.8
...
~/src/ansible$ source hacking/env-setup
...

Setting up Ansible to run out of checkout...
...
~/src/ansible$ ansible --version
[WARNING]: You are running the development version of Ansible. You
should only run Ansible from "devel" if you are modifying the Ansible
engine, or trying out features under development. This is a rapidly
changing source of code and can become unstable at any point.
ansible [core 2.14.0.dev0] (test_ansible_version-devel df497ea13b) last
updated 2022/08/25 10:37:07 (GMT +100)
...
```

which causes `test_ansible_version()` to fail.

Also removed an unused argument from previous parameterisation.

Co-authored-by: Alex Willmer <alex.willmer@cgi.com>
2 years ago
..
arguments Clarify CLI version number as core version (#72287) 3 years ago
galaxy ansible-galaxy - add signature verification of the MANIFEST.json (#76681) 2 years ago
test_data Remove .travis.yml files from galaxy init skeletons (#75740) 2 years ago
__init__.py galaxy info displayed 'galaxy_info' section wrong 8 years ago
test_adhoc.py tests: Fix `test_ansible_version()` when run within a git checkout (#78636) 2 years ago
test_cli.py Use unittest.mock instead of mock. (#77883) 2 years ago
test_console.py Use unittest.mock instead of mock. (#77883) 2 years ago
test_doc.py refactor and fixes for doc parsing (#77719) 2 years ago
test_galaxy.py add required file to collection skeleton (#77418) 2 years ago
test_playbook.py Perfy McPerferton (#58400) 5 years ago
test_vault.py Use unittest.mock instead of mock. (#77883) 2 years ago