pytest-param is a plugin for py.test that makes it easy to test all, first, last or random params.
Requirements
You will need the following prerequisites to use pytest-param:
Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, PyPy or PyPy3
py.test 2.6 or newer
Installation
To install pytest-param:
$ pip install pytest-param
Testing a param
Given test_file.py with this test:
import pytest
@pytest.mark.parametrize("params", [True, False])
def test_param(params):
pass
Use the --param=first command line option to test the True
param:
$ py.test --param=first test_file.py
Use --param=last to test the False param:
$ py.test --param=last test_file.py
Use --param=random to test one of the params at random.
Resources
Metadata
Release files for pytest-param 0.1.1
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-param-0.1.1.tar.gz | 5.3 kB | Without provenance | Details for pytest-param-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_param-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pytest_param-0.1.1-py2.py3-none-any.whl |
Total release size: 9.8 kB
Release files / pytest-param-0.1.1.tar.gz
| Download URL | pytest-param-0.1.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f730d49403021e794fff8dfd8d08fdfca78df050e25f6c78ec434d0c843ec1a
|
|
BLAKE2b-256 checksum How to use checksums |
ffa9ec29336fe6ac34646ed1f0c7669eca646405e31f3960fc378ff9cc6171d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytest_param-0.1.1-py2.py3-none-any.whl
| Download URL | pytest_param-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
00216de7b2f40992add60401898631c88c2d008d549df6a01244ae960a6199cb
|
|
BLAKE2b-256 checksum How to use checksums |
cd3897355ece45122f2b7de43c9dca1293532a836e7e1bfb2e58727a57bcfe0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-param 0.1.1
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.