Skip to main content

Faker integration for pytest framework.

Project description

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

Authors

Anatoly Bubenkov

original idea and implementation

These people have contributed to pytest-faker, in alphabetical order:

Changelog

1.0.0

  • initial release (bubenkoff)

Download files

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

Source Distribution

pytest-faker-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file pytest-faker-1.0.0.tar.gz.

File metadata

  • Download URL: pytest-faker-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-faker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd316c77a711469bdf34f874ab018aac15d1b6331befdb887d38352b0f00f5a4
MD5 7c3f0d20a35f33e9c82e93b9d722e0f1
BLAKE2b-256 d0fdf00ebf5946566570a2df284697b300531ba6b7f799d4baf9a496d7ceb779

See more details on using hashes here.

Supported by

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