pytest-shortcuts
Expand command-line shortcuts listed in pytest configuration
This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.
Getting Started
Install using your favourite python package manager:
$ pip install pytest-shortcuts
Add some shortcuts to your pytest configuration:
[pytest]
shortcuts =
--live: -m "live and not slow"
--slow: -m "live and slow"
--offline: --disable-socket -m "not live"
Now when you run your tests with eg --live, it will be as if you provided -m "live and not slow".
Contributing
If you would like to contribute, you may need to install the following development tools:
# Useful for installing tools like tox and pre-commit in a separate environment
pip install --user pipx
# We run the test suite with tox
pipx install tox
pipx install flake8
# Install pre-commit hooks to prevent commits that do not pass static checks
pipx install pre-commit
pre-commit install
Additionally, you will want to install a number of different Python versions for tox to use.
I would recommend using pyenv to do this.
After you have installed pyenv, run tox to see which Python versions you are missing and enable them.
For example:
brew install pyenv # If you have homebrew
tox -l # Check which Python versions are currently required
pipx inject tox tox-pyenv # Make pyenv versions available to tox
pyenv install 3.6.11 # If you need a Python 3.6
pyenv install 3.7.8 # If you need a Python 3.7
pyenv install 3.8.5 # If you need a Python 3.8
pyenv local 3.6.11 3.7.8 3.8.5 # Make these versions locally available
tox # Run the test suite via tox (same as "make test")
A simple Makefile is included to run development commands, just type make to see
a list of available commands.
License
Distributed under the terms of the BSD-3 license, "pytest-shortcuts" is free and open source software
Metadata
Release files for pytest-shortcuts 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-shortcuts-0.4.0.tar.gz | 4.3 kB | Without provenance | Details for pytest-shortcuts-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_shortcuts-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_shortcuts-0.4.0-py3-none-any.whl |
Total release size: 8.8 kB
Release files / pytest-shortcuts-0.4.0.tar.gz
| Download URL | pytest-shortcuts-0.4.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
010335aecb8163db92e8b41cb07ac96c4207d145f76d64b9762aa39817b44abf
|
|
BLAKE2b-256 checksum How to use checksums |
0219283685c4bff5b3bbc273e61f2dbe519292b7cbaa684ebeb41577d1b7a230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Release files / pytest_shortcuts-0.4.0-py3-none-any.whl
| Download URL | pytest_shortcuts-0.4.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78d87e7272848eafb394d20c18da56f6eadd29824eda357151c83733e22f4643
|
|
BLAKE2b-256 checksum How to use checksums |
791edb2125c83066d3040345132c7ac7076ee7ec8653d6ff1c5f6a3fd8e6db63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Security for pytest-shortcuts 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.