- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 212 for raise (0.02 seconds)
-
tests/test_response_model_as_return_annotation.py
def test_response_model_no_annotation_return_invalid_dict(): with pytest.raises(ResponseValidationError) as excinfo: client.get("/response_model-no_annotation-return_invalid_dict") assert "missing" in str(excinfo.value) def test_response_model_no_annotation_return_invalid_model(): with pytest.raises(ResponseValidationError) as excinfo:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 50.3K bytes - Click Count (0) -
tests/test_router_circular_import.py
import pytest from fastapi import APIRouter def test_router_circular_import(): router = APIRouter() with pytest.raises( AssertionError, match="Cannot include the same APIRouter instance into itself. Did you mean to include a different router?", ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 10 10:58:40 GMT 2026 - 317 bytes - Click Count (0) -
tests/test_fastapi_cli.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Dec 02 04:02:38 GMT 2025 - 866 bytes - Click Count (0) -
docs/en/docs/reference/websockets.md
```python from fastapi.websockets import WebSocketDisconnect, WebSocketState ``` ::: fastapi.websockets.WebSocketDisconnect When a client disconnects, a `WebSocketDisconnect` exception is raised, you can catch it. You can import it directly form `fastapi`: ```python from fastapi import WebSocketDisconnect ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 12:41:54 GMT 2026 - 2K bytes - Click Count (0) -
CONTRIBUTING.md
list](https://groups.google.com/forum/#!forum/golang-nuts) or [other forums](https://golang.org/help/) first. If the behavior you are seeing is confirmed as a bug or issue, it can easily be re-raised in the issue tracker. ## Filing issues Sensitive security-related issues should be reported to [******@****.***](mailto:******@****.***). See the [security policy](https://golang.org/security) for details.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 29 22:00:27 GMT 2023 - 1.3K bytes - Click Count (0) -
tests/test_route_scope.py
data = websocket.receive_json() assert data == {"item_id": "portal-gun", "path": "/items/{item_id}"} def test_websocket_invalid_path_doesnt_match(): with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/itemsx/portal-gun"):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 1.5K bytes - Click Count (0) -
tests/test_dependency_contextvars.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0) -
tests/test_datastructures.py
import pytest from fastapi import FastAPI, UploadFile from fastapi.datastructures import Default from fastapi.testclient import TestClient def test_upload_file_invalid_pydantic_v2(): with pytest.raises(ValueError): UploadFile._validate("not a Starlette UploadFile", {}) def test_default_placeholder_equals(): placeholder_1 = Default("a") placeholder_2 = Default("a")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/exception/JobProcessingException.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.exception; /** * Exception thrown when an error occurs during job processing. * This exception is used to indicate problems that arise during * the execution or processing of jobs in the system. */ public class JobProcessingException extends FessSystemException { private static final long serialVersionUID = 1L; /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.7K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt
*/ @Tag("Remote") class LetsEncryptClientTest { @Test fun get() { // These tests wont actually run before Android 8.0 as per // https://github.com/mannodermaus/android-junit5 // Raised https://github.com/mannodermaus/android-junit5/issues/228 to reevaluate val androidMorEarlier = Build.VERSION.SDK_INT <= 23 val clientBuilder = OkHttpClient.Builder() if (androidMorEarlier) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 26 07:38:51 GMT 2026 - 4.4K bytes - Click Count (0)