- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 213 for raise (0.42 sec)
-
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"):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 03:29:38 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/test_dependency_contextvars.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008c.py
assert response.status_code == 200, response.text assert response.json() == "plumbus" def test_fastapi_error(mod: ModuleType): client = TestClient(mod.app) with pytest.raises(FastAPIError) as exc_info: client.get("/items/portal-gun") assert "raising an exception and a dependency with yield" in exc_info.value.args[0] def test_internal_server_error(mod: ModuleType):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.4K bytes - Viewed (0) -
docs/en/docs/reference/websockets.md
- iter_bytes - iter_json - send_text - send_bytes - send_json - close 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 ``` ::: fastapi.WebSocketDisconnect ## WebSockets - additional classesRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 1.7K bytes - Viewed (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")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1.8K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_app01.py
monkeypatch.delenv("ADMIN_EMAIL", raising=False) if mod_name in sys.modules: del sys.modules[mod_name] # pragma: no cover with pytest.raises(ValidationError) as exc_info: importlib.import_module(mod_name) assert exc_info.value.errors() == [ { "loc": ("admin_email",), "msg": "Field required",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 2.2K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d.py
assert response.status_code == 200, response.text assert response.json() == "plumbus" def test_internal_error(mod: ModuleType): client = TestClient(mod.app) with pytest.raises(mod.InternalError) as exc_info: client.get("/items/portal-gun") assert ( exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick" )Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.4K bytes - Viewed (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; /**Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.7K bytes - Viewed (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.
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Mar 29 22:00:27 UTC 2023 - 1.3K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.25.md
- Do not raise an error when setting a label with the same value, ignore it. ([#105936](https://github.com/kubernetes/kubernetes/pull/105936), [@zigarn](https://github.com/zigarn))
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Mon May 06 09:23:20 UTC 2024 - 419.1K bytes - Viewed (0)