faker integration the pytest test runner
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pytest_faker
tests
.gitignore
.travis.yml
AUTHORS.rst
CHANGES.rst
MANIFEST.in
Makefile
README.rst
requirements-testing.txt
setup.py
tox.ini

README.rst

Faker integration with the pytest test runner

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