This plugin is used to expect multiple assert using pytest framework.
Project description
# pytest_expectr
pytest-expectr is a plugin for [pytest](https://docs.pytest.org/en/latest/) that provide expect to tests/fixtures for multiple assert use.
## Requirements
You will need the following prerequisites in order to use pytest-variables:
- Python 2.7, 3.6, PyPy, or PyPy3
- pytest 2.6 or newer
## How to install
To install pytest-expectr:
```bash
pip install git+https://github.com/Benabra/pytest_expectr.git
```
## How to use
```python
def test_hello(expect):
expect(1==2, 'your error message 1')
expect(1==3, 'your error message 2')
...
```
pytest-expectr is a plugin for [pytest](https://docs.pytest.org/en/latest/) that provide expect to tests/fixtures for multiple assert use.
## Requirements
You will need the following prerequisites in order to use pytest-variables:
- Python 2.7, 3.6, PyPy, or PyPy3
- pytest 2.6 or newer
## How to install
To install pytest-expectr:
```bash
pip install git+https://github.com/Benabra/pytest_expectr.git
```
## How to use
```python
def test_hello(expect):
expect(1==2, 'your error message 1')
expect(1==3, 'your error message 2')
...
```
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
pytest_expectr-1.4.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_expectr-1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26fc40978c95c1495867b1f7511904219491ccdd4e6d531347b232f12f271d6 |
|
MD5 | 9bb5476c0f5b1ef91ec6232cd82ff691 |
|
BLAKE2b-256 | 3e575f9637bd0c5bdea50323fca48280308cba5ca74d17c9693a847ac6f3387c |