pytest-faker
Faker integration with the pytest framework.
Decision gist · record as of 2026-08-14
No. The package is abandoned (latest release 2016-12-19, last commit 2020-05-14) with high install friction, making it risky. Faker likely now provides native pytest integration or the community has moved to maintained alternatives. Verify current Faker documentation before considering this package.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pytest and Faker to be installed; compatibility with modern versions is unclear given the package's age and lack of maintenance.
- High install friction and abandoned maintenance status.
- The package has not been updated since 2016-12-19, with the last repository commit in 2020-05-14.
License · maintenance · safety
MIT license (permissive) — Licensed under MIT license, a permissive license that allows commercial and private use with minimal restrictions, making it safe from a licensing perspective.
last release 2016-12-19 (3525 days) · last repo commit 2020-05-14 · 41 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 88,524 downloads/mo, #13,720 on PyPI
Alternatives
Verify before relying
pip install pytest-faker
# In your test file:
def test_faker(faker):
from faker.generator import Generator
assert isinstance(faker, Generator)
assert isinstance(faker.name(), str)- Whether the package works with current versions of pytest and Faker, given no updates since 2016-12-19.
- Whether the package is compatible with Python versions beyond 3.4, which was the latest listed in classifiers.
- Whether Faker itself now provides native pytest integration that supersedes this package.
What it is and what it does
pytest-faker is a thin integration layer that exposes the Faker library as a pytest fixture, allowing test functions to receive a Faker generator instance by declaring a `faker` parameter. Instead of instantiating Faker manually in each test, you get it injected as a session-scoped fixture, simplifying the setup of fake data generation for testing.
The package has been unmaintained since its latest release on 2016-12-19 and carries no runtime dependencies beyond pytest and Faker themselves. Its age and lack of updates create significant uncertainty about compatibility with modern versions of either tool.
Use it for
- Generate fake names, addresses, or email addresses in unit tests without manual Faker instantiation.
- Create consistent test data across multiple test functions using a shared session-scoped faker fixture.
- Reduce boilerplate in test files by relying on pytest's fixture injection instead of explicit Faker setup.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (latest release 2016-12-19, last commit 2020-05-14) with high install friction, making it risky. Faker likely now provides native pytest integration or the community has moved to maintained alternatives. Verify current Faker documentation before considering this package.
Install
pytest-faker on PyPI
Before you install
High install friction and abandoned maintenance status. The package has not been updated since 2016-12-19, with the last repository commit in 2020-05-14. No active maintenance or security updates are expected.
Requires pytest and Faker to be installed; compatibility with modern versions is unclear given the package's age and lack of maintenance.
License in practice
Licensed under MIT license, a permissive license that allows commercial and private use with minimal restrictions, making it safe from a licensing perspective.
Quickstart
pip install pytest-faker
# In your test file:
def test_faker(faker):
from faker.generator import Generator
assert isinstance(faker, Generator)
assert isinstance(faker.name(), str)
Verify before relying
- Whether the package works with current versions of pytest and Faker, given no updates since 2016-12-19.
- Whether the package is compatible with Python versions beyond 3.4, which was the latest listed in classifiers.
- Whether Faker itself now provides native pytest integration that supersedes this package.
Package facts
| License | MIT license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,525 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 88,524 / month, #13,720 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.0Programming Language :: Python :: 3.1Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest-faker-2.0.0.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest faker fixtures”
- pytest-fakerProvides pytest fixtures that integrate the Faker library for…
- FakerFaker generates realistic fake data—names, addresses, emails, phone…
- pydantic-factoriesGenerates mock data objects that conform to pydantic models,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also Faker · pytest-factoryboy · streamlit-faker · faker-e164 · pytest-httpbin · pytest-django · jsf · fake-factory · mimesis · robotframework-faker