Fastapi-testing

Latest version: v0.2.2

Safety actively analyzes 722581 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.2

Configuration simplification:

- Removed dependencies: pydantic-settings and python-dotenv
- Replaced with lightweight Config class with explicit env var loading
- Moved pydantic to dev dependencies only
- Improved VS Code configuration settings

0.2.1

(feat) add full WebSocket support and modernize codebase.

Add comprehensive WebSocket functionality with protocol-level support and connection management.

Key changes:

- Add WebSocket testing capabilities with robust message handling
- Implement WebSocketConfig and WebSocketHelper classes
- Add retry logic and proper cleanup for WebSocket connections
- Add environment-based configuration via pydantic-settings

0.2.0

(refactor) rename Test-prefixed classes to Async prefix

Rename classes prefixed with "Test" to "Async" to prevent pytest from treating them as test classes. This fixes pytest collection warnings.

- Rename TestServer to AsyncTestServer

0.1.1

fix: Downgrade httpx dependency for better compatibility

- Constrain httpx version to >=0.23.0,<0.28.0 for stability
- Update documentation link to point to master branch
- Remove pytest.ini in favor of pyproject.toml configuration

Breaking changes: None

0.1.0

Initial release of FastAPI Testing framework with async-first design, automatic port management, and clean lifecycle management.

Includes TestServer, TestClient, and TestResponse components with full FastAPI lifespan support.

Requires Python 3.11+, FastAPI 0.115.0+

Key features:

- Async-first test framework
- Automatic port management
- Context manager support
- Built-in async HTTP client
- Resource cleanup
- Type-safe design

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.