Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for fooinvoice (0.05 seconds)

  1. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

    def get_client(mod: ModuleType):
        client = TestClient(mod.app)
        client.headers.clear()
        return client
    
    
    def test_get(client: TestClient):
        response = client.post(
            "/invoices/", json={"id": "fooinvoice", "customer": "John", "total": 5.3}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"msg": "Invoice received"}
    
    
    def test_dummy_callback(mod: ModuleType):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top