---
title: "#pytest articles | Hashnode"
description: "Explore 115 articles tagged #pytest on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/pytest"
---

Tag

# #pytest

115 posts · 33 followers

[Willette](https://hashnode.com/@willette-samer) · [3d ago](https://hashnode.com/posts/appium-otp-automation-python-sms/6af598179ed7648f405ce770)

### [Appium OTP Automation: Test SMS OTP with Python on Android](https://sms-otp-testing.hashnode.dev/appium-otp-automation-python-sms?utm_source=hashnode&utm_medium=feed)

Read the code through an API, type it like a user, and release the number in a pytest fixture even when the test fails.

16 min read · [sms-otp-testing.hashnode.dev](https://sms-otp-testing.hashnode.dev/appium-otp-automation-python-sms?utm_source=hashnode&utm_medium=feed)

[Temp SMS](https://hashnode.com/@tempsmss) · [Nov 6](https://hashnode.com/posts/testing-sms-otp-python-pytest/6aee2b4495b47581d59f5718)

### [Testing SMS OTP in Python with pytest: Fake Provider, Frozen Clock, Rate Limits](https://tempsmss.hashnode.dev/testing-sms-otp-python-pytest?utm_source=hashnode&utm_medium=feed)

Test SMS OTP in Python with pytest: a fake SMS provider, frozen clocks with time-machine and freezegun, and rate-limit tests without sleeping.

6 min read · [tempsmss.hashnode.dev](https://tempsmss.hashnode.dev/testing-sms-otp-python-pytest?utm_source=hashnode&utm_medium=feed)

[Vikram Kumar Shukla](https://hashnode.com/@vikramkumarshukla) · [Nov 6](https://hashnode.com/posts/a-passing-test-can-lie-to-you-for-a-whole-second-pytest-9-2-closes-one-of-the-gaps/6aed58aff8507ca96e86a626)

### [A passing test can lie to you for a whole second. pytest 9.2 closes one of the gaps.](https://vikramkumarshukla.hashnode.dev/a-passing-test-can-lie-to-you-for-a-whole-second-pytest-9-2-closes-one-of-the-gaps?utm_source=hashnode&utm_medium=feed)

A passing test can lie to you for a whole second. pytest 9.2 closes one of the gaps. I have a habit I picked up from years of debugging other people's code: when a test goes green right after I change

5 min read · [vikramkumarshukla.hashnode.dev](https://vikramkumarshukla.hashnode.dev/a-passing-test-can-lie-to-you-for-a-whole-second-pytest-9-2-closes-one-of-the-gaps?utm_source=hashnode&utm_medium=feed)

[Kirill](https://hashnode.com/@marshlw) · [Oct 28](https://hashnode.com/posts/screenshot-testing-in-python-why-i-ended-up-writing-my-own-library/6ae237f0e626a4596dcfd847)

### [Screenshot testing in Python: why I ended up writing my own library](https://marshlw-blog.hashnode.dev/screenshot-testing-in-python-why-i-ended-up-writing-my-own-library?utm_source=hashnode&utm_medium=feed)

A failed screenshot check should say what changed, not just “2.31% mismatch”

6 min read · [marshlw-blog.hashnode.dev](https://marshlw-blog.hashnode.dev/screenshot-testing-in-python-why-i-ended-up-writing-my-own-library?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/screenshot-testing-in-python-why-i-ended-up-writing-my-own-library/6ae237f0e626a4596dcfd847)

[ZyVOP](https://hashnode.com/@zyvop) · [Oct 24](https://hashnode.com/posts/testing-with-pytest-fixtures-fake-models-and-properties-edvab/6adc6ad5e2e4acbf21ea9c88)

### [Testing with pytest: Fixtures, Fake Models, and Properties](https://blog.zyvop.com/testing-with-pytest-fixtures-fake-models-and-properties-edvab?utm_source=hashnode&utm_medium=feed)

Learn to write fast, reliable tests with pytest, swap real AI models for fakes so tests cost nothing, and let Hypothesis hunt for the weird inputs that break your code.

16 min read · [blog.zyvop.com](https://blog.zyvop.com/testing-with-pytest-fixtures-fake-models-and-properties-edvab?utm_source=hashnode&utm_medium=feed)

[aviad rozenhek](https://hashnode.com/@aviadr1) · [Oct 22](https://hashnode.com/posts/an-empty-affected-test-list-might-accidentally-run-your-entire-pytest-suite/6ada72f546b9665bbff32cef)

### [An empty affected-test list might accidentally run your entire pytest suite](https://gigaverse-engineering.hashnode.dev/an-empty-affected-test-list-might-accidentally-run-your-entire-pytest-suite?utm_source=hashnode&utm_medium=feed)

An empty test list might run your entire suite. Handle none, scoped and full plans explicitly before starting pytest or application services.

2 min read · [gigaverse-engineering.hashnode.dev](https://gigaverse-engineering.hashnode.dev/an-empty-affected-test-list-might-accidentally-run-your-entire-pytest-suite?utm_source=hashnode&utm_medium=feed)

[Himani](https://hashnode.com/@himanitayal) · [Oct 19](https://hashnode.com/posts/python-for-php-developers-part-4-testing-fastapi-with-pytest/6ad5bc2615f045317c1880f3)

### [Python for PHP Developers, Part 4: Testing FastAPI with pytest](https://himanitayal.hashnode.dev/python-for-php-developers-part-4-testing-fastapi-with-pytest?utm_source=hashnode&utm_medium=feed)

Test a FastAPI app with pytest:in-memory database overrides, fixtures and JWT-protected routes, explained for developers coming from PHPUnit & Laravel

4 min read · [himanitayal.hashnode.dev](https://himanitayal.hashnode.dev/python-for-php-developers-part-4-testing-fastapi-with-pytest?utm_source=hashnode&utm_medium=feed)

[sung woon cho](https://hashnode.com/@cswing) · [Oct 8](https://hashnode.com/posts/designing-a-qa-harness-for-ai-from-business-understanding-to-verifiable-results/6ac6ef998d5a995a2c1c44e1)

### [Designing a QA Harness for AI: From Business Understanding to Verifiable Results](https://cswing.hashnode.dev/designing-a-qa-harness-for-ai-from-business-understanding-to-verifiable-results?utm_source=hashnode&utm_medium=feed)

1\. The Question That Started the Project In November 2025, I documented an idea: could AI automate the repetitive work involved in testing a web application? Whenever a feature changed, someone had to

13 min read · [cswing.hashnode.dev](https://cswing.hashnode.dev/designing-a-qa-harness-for-ai-from-business-understanding-to-verifiable-results?utm_source=hashnode&utm_medium=feed)

[Madhav Bhasin](https://hashnode.com/@madhavbhasin) · [Oct 5](https://hashnode.com/posts/testing-ai-dependent-code-mocking-llms-evaluating-outputs-and-avoiding-flaky-tests/6ac33dab2f76360ece243dda)

### [Testing AI-Dependent Code: Mocking LLMs, Evaluating Outputs, and Avoiding Flaky Tests](https://blog.madhav.dev/testing-ai-dependent-code-mocking-llms-evaluating-outputs-and-avoiding-flaky-tests?utm_source=hashnode&utm_medium=feed)

How to test FastAPI services that call LLMs — client-level mocking, schema validation over exact assertions, prompt snapshots

6 min read · [blog.madhav.dev](https://blog.madhav.dev/testing-ai-dependent-code-mocking-llms-evaluating-outputs-and-avoiding-flaky-tests?utm_source=hashnode&utm_medium=feed)

[16](https://hashnode.com/posts/testing-ai-dependent-code-mocking-llms-evaluating-outputs-and-avoiding-flaky-tests/6ac33dab2f76360ece243dda)

[AutomationDataCamp](https://hashnode.com/@automationdatacamp) · [Oct 1](https://hashnode.com/posts/playwright-with-python-and-pytest-a-complete-tested-tutorial-from-first-script-to-ci/6abef01b4fa64d3ee63cd91c)

### [Playwright with Python and pytest: a complete, tested tutorial (from first script to CI)](https://automationdatacamp.hashnode.dev/playwright-with-python-and-pytest-a-complete-tested-tutorial-from-first-script-to-ci?utm_source=hashnode&utm_medium=feed)

Playwright for Python with pytest: install, locators, web-first assertions, Codegen, Trace Viewer, API tests, Page Object and GitHub Actions.

5 min read · [automationdatacamp.hashnode.dev](https://automationdatacamp.hashnode.dev/playwright-with-python-and-pytest-a-complete-tested-tutorial-from-first-script-to-ci?utm_source=hashnode&utm_medium=feed)
