FastAPI Testing with Pytest and HTTPX / Najlacnejšie knihy
FastAPI Testing with Pytest and HTTPX

Code: 53881582

FastAPI Testing with Pytest and HTTPX

by Liora Byteforge

Build FastAPI applications you can change, refactor, and deploy with confidence.Writing an API that works is only the beginning. As FastAPI projects grow to include databases, authentication, permissions, asynchronous operations, ... more

20.84

RRP: 22.39 €

You save 1.55 €


In stock at our supplier
Shipping in 14 - 21 days
Add to wishlist

You might also like

Give this book as a present today
  1. Order book and choose Gift Order.
  2. We will send you book gift voucher at once. You can give it out to anyone.
  3. Book will be send to donee, nothing more to care about.

Book gift voucher sampleRead more

More about FastAPI Testing with Pytest and HTTPX

You get 51 loyalty points

Book synopsis

Build FastAPI applications you can change, refactor, and deploy with confidence.

Writing an API that works is only the beginning. As FastAPI projects grow to include databases, authentication, permissions, asynchronous operations, and external services, reliable automated testing becomes essential.

FastAPI Testing with Pytest and HTTPX is a practical guide to designing clear, maintainable, and production-ready test suites for modern Python APIs. Rather than relying on isolated examples, the book develops a structured testing workflow that can be applied to real FastAPI projects.

You will learn how to test individual business rules, API endpoints, request validation, CRUD operations, database behavior, authentication flows, authorization rules, and external integrations. You will also work with Pytest fixtures, FastAPI dependency overrides, TestClient, HTTPX AsyncClient, ASGITransport, AnyIO, SQLAlchemy test databases, mocking, monkeypatching, parametrized tests, and coverage tools.

As the book progresses, you will learn how to isolate database tests with transactions and rollbacks, verify JWT authentication and protected routes, test roles and resource ownership, mock external HTTP services and side effects, control environment variables and time, and prevent brittle or flaky tests.

The final chapters bring these techniques together into a production-focused workflow using organized unit, integration, and API test suites, Pytest markers, PostgreSQL containers, continuous integration, and release validation.

Whether you are strengthening an existing FastAPI application or building a professional testing strategy from the beginning, this book will help you create tests that catch meaningful regressions, support safer refactoring, and give you greater confidence every time your backend changes.

Book details

20.84



Osobný odber Bratislava a 13042 dalších

Copyright ©2008-26 najlacnejsie-knihy.sk Všetky práva vyhradenéSúkromieCookies


Môj účet: Prihlásiť sa
Všetky knihy sveta na jednom mieste. Navyše za skvelé ceny.

Nákupný košík ( prázdny )

Vyzdvihnutie v Zásielkovni
zadarmo nad 59,99 €.

Nachádzate sa: