{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Provides pytest fixtures that spin up local HTTP and SMTP servers for testing code that makes real network requests without relying on external services or mocking.","skillfed_tags":["pytest-plugin","integration-testing","http-testing"],"use_cases":["Test a web scraper or API client against a controlled local server instead of a live endpoint.","Verify your code handles HTTP error responses gracefully without external dependencies.","Test email-sending code by inspecting what was posted to a local SMTP server.","Test request headers and POST data handling by examining the server's received requests.","Run integration tests for code that makes network calls without mocking the underlying HTTP layer."],"what_it_does":"pytest-localserver is a pytest plugin that provides fixtures for running local HTTP and SMTP servers during tests. Instead of mocking HTTP calls or relying on external test servers, you get a real server running on localhost that you can control\u2014setting response codes, headers, content, and inspecting incoming requests. It works with werkzeug to handle the underlying HTTP protocol.\n\nThe plugin includes httpserver and httpsserver fixtures for HTTP/HTTPS testing, plus an smtpserver fixture for testing mail-sending code. You configure what each server should return, make your code talk to it, and then verify the requests were made correctly. It also supports running a WSGI application on the test server, making it flexible for testing against different backend behaviors.","worth_installing":"Yes. Low install friction, actively maintained, no known vulnerabilities, and solves a real testing problem\u2014letting you test network-dependent code with a real local server rather than mocks."},"id":"pytest-localserver","links":{"html":"https://skillfed.io/packages/pytest-localserver","md":"https://skillfed.io/packages/pytest-localserver.md","pypi":"https://pypi.org/project/pytest-localserver/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-24","license_spdx":"MIT","license_treatment":"permissive","name":"pytest-localserver","python_support":"supports_current","summary":"pytest plugin to test server connections locally."},"popularity":{"monthly_downloads":395896,"position":6978,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.0"}
