pytest plugin to test all, first, last or random params
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-param-0.1.1.tar.gz.
File metadata
- Download URL: pytest-param-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f730d49403021e794fff8dfd8d08fdfca78df050e25f6c78ec434d0c843ec1a
|
|
| MD5 |
78a0ef7b44754f3614e908d48ded81f7
|
|
| BLAKE2b-256 |
ffa9ec29336fe6ac34646ed1f0c7669eca646405e31f3960fc378ff9cc6171d4
|
File details
Details for the file pytest_param-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_param-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00216de7b2f40992add60401898631c88c2d008d549df6a01244ae960a6199cb
|
|
| MD5 |
a41a50c0d1c2a85b8ce33c85f3f2589b
|
|
| BLAKE2b-256 |
cd3897355ece45122f2b7de43c9dca1293532a836e7e1bfb2e58727a57bcfe0e
|