Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for test_get_path (0.04 sec)

  1. tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py

    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(client: TestClient, path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. tests/test_custom_route_class.py

    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/a", 200, {"msg": "A"}),
            ("/a/b", 200, {"msg": "B"}),
            ("/a/b/c", 200, {"msg": "C"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_route_classes():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/DfsReferralDataTest.java

            // Then
            assertEquals(pathConsumed, result);
            verify(mockReferralData).getPathConsumed();
        }
    
        @Test
        @DisplayName("Should get path")
        void testGetPath() {
            // Given
            String path = "/test/path";
            when(mockReferralData.getPath()).thenReturn(path);
    
            // When
            String result = mockReferralData.getPath();
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                // For now, we expect the NPE to maintain backward compatibility
                assertThrows(NullPointerException.class, () -> new SmbFile("smb1://").getParent());
            }
    
            @Test
            public void testGetPath() throws MalformedURLException {
                // Path should be the original, uncanonicalized URL
                String url = "smb1://server/share/../share/file.txt";
                SmbFile smbFile = new SmbFile(url);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top