Skip to main content

Integrates pytest asserts with behave

Project description

# Behave-pytest

Small utility package to integrate pytest asserts into Behave project.

## Quick start


Installation:

```bash
$ pip install behave-pytest
```

Add before_all hook into your project. like this (features/environment.py):

```python

from behave_pytest.hook import install_pytest_asserts

def before_all(context):
install_pytest_asserts()
```

That's it. When running test you will see standard pytest assertion details:

![Behave + Pytest](pytest.png)

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

behave-pytest-0.1.0.tar.gz (1.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page