Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_tutorial/test_request_files/test_tutorial002_an.py

                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                        "summary": "Main",
                        "operationId": "main__get",
                    }
                },
            },
            "components": {
                "schemas": {
                    "Body_create_upload_files_uploadfiles__post": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_websockets/test_tutorial002_an.py

    import pytest
    from fastapi.testclient import TestClient
    from fastapi.websockets import WebSocketDisconnect
    
    from docs_src.websockets.tutorial002_an import app
    
    
    def test_main():
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert b"<!DOCTYPE html>" in response.content
    
    
    def test_websocket_with_cookie():
        client = TestClient(app, cookies={"session": "fakesession"})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.6K bytes
    - Viewed (0)
Back to top