- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for test_get_path (0.16 seconds)
-
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: 2026-04-05 07:19 - Last Modified: 2026-02-08 10:18 - 3.3K bytes - Click Count (0) -
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: 2026-04-05 07:19 - Last Modified: 2026-02-08 10:18 - 56.9K bytes - Click Count (0) -
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(); // ThenCreated: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
@BeforeEach void setUp() { testImplementation = new TestRequestWithPath(); } @Test @DisplayName("Test getPath returns correct path") void testGetPath() { // Test with mock String expectedPath = "/share/folder/file.txt"; when(requestWithPath.getPath()).thenReturn(expectedPath); assertEquals(expectedPath, requestWithPath.getPath());Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 12.2K bytes - Click Count (0) -
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);Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 8.5K bytes - Click Count (0) -
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: 2026-03-31 13:07 - Last Modified: 2026-03-13 23:01 - 18K bytes - Click Count (0) -
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: 2026-03-31 13:07 - Last Modified: 2026-01-14 14:29 - 21.2K bytes - Click Count (0) -
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: 2026-03-31 13:07 - Last Modified: 2026-03-13 23:01 - 18.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testGetName() { // Act & Assert assertEquals("file.txt", smbFile.getName()); } @Test void testGetPath() { // Arrange doReturn("/share/file.txt").when(smbFile).getPath(); // Act & Assert assertEquals("/share/file.txt", smbFile.getPath()); } }Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
// Test empty path request.setPath(""); assertEquals("\\", request.getPath()); } @Test @DisplayName("Test getPath returns correct formatted path") void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt");Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 07:14 - 18.6K bytes - Click Count (0)