Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for test_path_operations (0.06 sec)

  1. tests/test_tutorial/test_response_directly/test_tutorial002.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_directly.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_path_operation(client: TestClient):
        expected_content = """<?xml version="1.0"?>
        <shampoo>
        <Header>
            Apply shampoo here.
        </Header>
        <Body>
            You'll have to use soap here.
        </Body>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_using_request_directly/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.using_request_directly.tutorial001_py39 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200
        assert response.json() == {"client_host": "testclient", "item_id": "foo"}
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_additional_responses/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.additional_responses.tutorial001_py39 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_additional_responses/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.additional_responses.tutorial003_py39 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_directly/test_tutorial001.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_directly.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_path_operation(client: TestClient):
        response = client.put(
            "/items/1",
            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
                "description": "A test item",
            },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertTrue(Math.abs(retrievedTime - testTime) < 10000, "Set timestamp should be approximately correct");
        }
    
        // ========== Path and URL Operations ==========
    
        @Test
        void testPathOperations() throws Exception {
            SmbFile file = new SmbFile(baseUrl + "shared/path/file.txt", context);
    
            assertEquals("file.txt", file.getName(), "Name should be extracted correctly");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top