Skip to main content

This plugin is used to expect multiple assert using pytest framework.

Project description

# pytest_expectr

pytest-expectr is a plugin for [pytest]( that provide expect to tests/fixtures for multiple assert use.

## Requirements

You will need the following prerequisites in order to use pytest-expectr:

- Python 2.7, 3.6, PyPy, or PyPy3
- pytest 2.6 or newer

## How to install

To install pytest-expectr:

pip install pytest-expectr

## How to use

def test_hello(expect):
expect(1==2, 'your error message 1')
expect(1==3, 'your error message 2')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-expectr, version 1.4.2
Filename, size File type Python version Upload date Hashes
Filename, size pytest_expectr-1.4.2-py2.py3-none-any.whl (3.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest_expectr-1.4.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page