Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for test_get_path (0.24 seconds)

  1. 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():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  2. tests/test_application.py

        [
            ("/api_route", 200, {"message": "Hello World"}),
            ("/non_decorated_route", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    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_swagger_ui():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 56.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            }
        }
    
        // Test basic getters
        @Test
        public void test_getType() {
            assertEquals("stopwords", stopwordsFile.getType());
        }
    
        @Test
        public void test_getPath() {
            assertEquals(testFile.getAbsolutePath(), stopwordsFile.getPath());
        }
    
        @Test
        public void test_getSimpleName() {
            assertEquals(testFile.getName(), stopwordsFile.getSimpleName());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                    "test5\n";
        }
    
        @Test
        public void test_getType() {
            assertEquals("protwords", protwordsFile.getType());
        }
    
        @Test
        public void test_getPath() {
            assertEquals(testFile.getAbsolutePath(), protwordsFile.getPath());
        }
    
        @Test
        public void test_getSimpleName() {
            String expected = testFile.getName();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

        // Test getType method
        @Test
        public void test_getType() {
            assertEquals("mapping", charMappingFile.getType());
        }
    
        // Test getPath method
        @Test
        public void test_getPath() {
            assertEquals(testFile.getAbsolutePath(), charMappingFile.getPath());
        }
    
        // Test getSimpleName method
        @Test
        public void test_getSimpleName() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
Back to Top