Expand command-line shortcuts listed in pytest configuration
Project description
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"
.
For each shortcut, you can also define a dotenv file to load with custom configuration:
[pytest]
shortcuts =
--live: -m "live and not slow"
--slow: -m "live and slow"
envfiles =
--live: .live.env
License
Distributed under the terms of the BSD-3 license, "pytest-shortcuts" is free and open source software
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-shortcuts-0.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_shortcuts-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc35df6e31c425154d77e6bb32010e31a0b3ddb184aacec85c4616806845bf95 |
|
MD5 | 52b6939f50f6761ae19118b9ce689961 |
|
BLAKE2b-256 | d6179a149e0677dccdfdec9f49c7f680bf961bb14c0514968a1b8ace8f775f1d |