All Projects → pytest-dev → pytest-faker

pytest-dev / pytest-faker

Licence: MIT License
faker integration the pytest test runner

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

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.

Attention!

This plugin is included in the faker itself. This repository is not supported since then.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].