The only remaining 'py.test' references are: * those referring to the 'py.test' executable * those in code explicitly testing py.test/pytest module compatibility * those in old CHANGES documentation * those in documentation generated based on external data * those in seemingly unfinished & unmaintained Japanese documentation Minor stylistic changes and typo corrections made to documentation next to several applied py.test --> pytest content changes.
29 lines
702 B
Plaintext
29 lines
702 B
Plaintext
|
|
.. _bash_completion:
|
|
|
|
Setting up bash completion
|
|
==========================
|
|
|
|
When using bash as your shell, ``pytest`` can use argcomplete
|
|
(https://argcomplete.readthedocs.org/) for auto-completion.
|
|
For this ``argcomplete`` needs to be installed **and** enabled.
|
|
|
|
Install argcomplete using::
|
|
|
|
sudo pip install 'argcomplete>=0.5.7'
|
|
|
|
For global activation of all argcomplete enabled python applications run::
|
|
|
|
sudo activate-global-python-argcomplete
|
|
|
|
For permanent (but not global) ``pytest`` activation, use::
|
|
|
|
register-python-argcomplete py.test >> ~/.bashrc
|
|
|
|
For one-time activation of argcomplete for ``pytest`` only, use::
|
|
|
|
eval "$(register-python-argcomplete py.test)"
|
|
|
|
|
|
|