faker integration the pytest test runner

https://api.travis-ci.org/pytest-dev/pytest-faker.png https://pypip.in/v/pytest-faker/badge.png https://coveralls.io/repos/pytest-dev/pytest-faker/badge.png?branch=master Documentation Status

pytest-faker adds faker fixtures for easy use of faker for your tests under pytest runner.

Install pytest-faker

pip install pytest-faker

Example

An example of faker and pytest integration.

tests/test_faker.py:

from faker.generator import Generator

def test_faker(faker):
    """Faker factory is a fixture."""
    assert isinstance(faker, Generator)
    assert isinstance(faker.name(), str)

License

This software is licensed under the MIT license.

© 2015 Anatoly Bubenkov, Oleg Pidsadnyi and others