Faker integration with the pytest framework.
Project description
Faker_ integration with the pytest_ test runner
==========================================
.. image:: http://img.shields.io/travis/pytest-dev/pytest-faker.svg
:target: https://travis-ci.org/pytest-dev/pytest-faker
.. image:: https://img.shields.io/pypi/pyversions/pytest-qt.svg
:target: https://pypi-hypernode.com/pypi/pytest-qt/
.. image:: http://img.shields.io/pypi/v/pytest-faker.svg
:target: https://pypi-hypernode.com/pypi/pytest-faker
.. image:: http://img.shields.io/coveralls/pytest-dev/pytest-faker.svg
:target: https://coveralls.io/r/pytest-dev/pytest-faker
.. image:: https://readthedocs.org/projects/pytest-faker/badge/?version=latest
:target: https://readthedocs.org/projects/pytest-faker/?badge=latest
:alt: Documentation Status
pytest-faker adds Faker fixtures_ for easy use of Faker_ for your tests under pytest_ runner.
.. _Faker: https://faker.readthedocs.io/
.. _pytest: http://pytest.org/
.. _fixtures: https://pytest.org/latest/fixture.html
Install pytest-faker
-------------------------
::
pip install pytest-faker
Example
-------
An example of Faker_ and pytest_ integration.
tests/test_faker.py:
.. code-block:: python
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 <http://en.wikipedia.org/wiki/MIT_License>`_.
© 2015 Anatoly Bubenkov, Oleg Pidsadnyi and others
Authors
=======
`Anatoly Bubenkov <bubenkoff@gmail.com>`_
original idea and implementation
These people have contributed to `pytest-faker`, in alphabetical order:
* `Jeff Widman <jeff@jeffwidman.com>`_
* `Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>`_
Changelog
=========
2.0.0
-----
- Switch to a recent Faker (jeffwidman, bubenkoff)
1.1.0
-----
- Switch to a session scoped fixture (bubenkoff, thedrow)
1.0.0
-----
- initial release (bubenkoff)
==========================================
.. image:: http://img.shields.io/travis/pytest-dev/pytest-faker.svg
:target: https://travis-ci.org/pytest-dev/pytest-faker
.. image:: https://img.shields.io/pypi/pyversions/pytest-qt.svg
:target: https://pypi-hypernode.com/pypi/pytest-qt/
.. image:: http://img.shields.io/pypi/v/pytest-faker.svg
:target: https://pypi-hypernode.com/pypi/pytest-faker
.. image:: http://img.shields.io/coveralls/pytest-dev/pytest-faker.svg
:target: https://coveralls.io/r/pytest-dev/pytest-faker
.. image:: https://readthedocs.org/projects/pytest-faker/badge/?version=latest
:target: https://readthedocs.org/projects/pytest-faker/?badge=latest
:alt: Documentation Status
pytest-faker adds Faker fixtures_ for easy use of Faker_ for your tests under pytest_ runner.
.. _Faker: https://faker.readthedocs.io/
.. _pytest: http://pytest.org/
.. _fixtures: https://pytest.org/latest/fixture.html
Install pytest-faker
-------------------------
::
pip install pytest-faker
Example
-------
An example of Faker_ and pytest_ integration.
tests/test_faker.py:
.. code-block:: python
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 <http://en.wikipedia.org/wiki/MIT_License>`_.
© 2015 Anatoly Bubenkov, Oleg Pidsadnyi and others
Authors
=======
`Anatoly Bubenkov <bubenkoff@gmail.com>`_
original idea and implementation
These people have contributed to `pytest-faker`, in alphabetical order:
* `Jeff Widman <jeff@jeffwidman.com>`_
* `Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>`_
Changelog
=========
2.0.0
-----
- Switch to a recent Faker (jeffwidman, bubenkoff)
1.1.0
-----
- Switch to a session scoped fixture (bubenkoff, thedrow)
1.0.0
-----
- initial release (bubenkoff)
Project details
Release history Release notifications | RSS feed
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-2.0.0.tar.gz
(2.8 kB
view details)
File details
Details for the file pytest-faker-2.0.0.tar.gz
.
File metadata
- Download URL: pytest-faker-2.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b37bb89d94f96552bfa51f8e8b89d32addded8ddb58a331488299ef0137d9b6 |
|
MD5 | 9f2fa217f01480a7a1484fcf04eda2cd |
|
BLAKE2b-256 | c3761ccba9a1d11a0dd614b31f7160709fe05530ff2823a0ce441063430ad56f |