Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for John (0.12 sec)

  1. tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

        assert "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" in response.text
    
    
    def test_api(client: TestClient):
        response = client.get("/users/john")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

    from docs_src.openapi_callbacks.tutorial001 import app, invoice_notification
    
    client = TestClient(app)
    
    
    def test_get():
        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():
        # Just for coverage
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 9K bytes
    - Viewed (0)
Back to top