Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for parametrizar (0.2 seconds)

  1. tests/test_application.py

    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from .main import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/api_route", 200, {"message": "Hello World"}),
            ("/non_decorated_route", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 56.9K bytes
    - Click Count (0)
Back to Top