- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for didn (0.81 sec)
-
tests/test_tutorial/test_websockets/test_tutorial002.py
pytest.fail( "did not raise WebSocketDisconnect on __enter__" ) # pragma: no cover def test_websocket_invalid_data(app: FastAPI): client = TestClient(app) with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/foo/ws?q=bar&token=some-token"): pytest.fail( "did not raise WebSocketDisconnect on __enter__"
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.1K bytes - Viewed (0) -
docs_src/handling_errors/tutorial003_py39.py
@app.exception_handler(UnicornException) async def unicorn_exception_handler(request: Request, exc: UnicornException): return JSONResponse( status_code=418, content={"message": f"Oops! {exc.name} did something. There goes a rainbow..."}, ) @app.get("/unicorns/{name}") async def read_unicorn(name: str): if name == "yolo": raise UnicornException(name=name)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 626 bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial003.py
def test_get_exception(): response = client.get("/unicorns/yolo") assert response.status_code == 418, response.text assert response.json() == { "message": "Oops! yolo did something. There goes a rainbow..." } def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.2K bytes - Viewed (0) -
lib/hg/goreposum.py
# And golookup of a hash confirms that it still exists on the server. # We can use that to revalidate that specific versions still exist and # have the same meaning they did the last time we checked. # # Usage: # # hg --config "extensions.goreposum=$GOROOT/lib/hg/goreposum.py" goreposum REPOURL import base64, hashlib, sys from mercurial import registrar, ui, hg, node
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Nov 11 15:21:02 UTC 2025 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
assertWithMessage(error).that(error).isNull(); } executor.shutdown(); } /** * He did the bash, he did the future bash The future bash, it was a concurrency smash He did the * bash, it caught on in a flash He did the bash, he did the future bash */ public void testFutureBash() { if (isWindows()) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 46.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
assertWithMessage(error).that(error).isNull(); } executor.shutdown(); } /** * He did the bash, he did the future bash The future bash, it was a concurrency smash He did the * bash, it caught on in a flash He did the bash, he did the future bash */ public void testFutureBash() { if (isWindows()) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 46.8K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java
/** * {@return a matcher combining the include and exclude patterns} * If the user did not specify any includes, the given {@code defaultIncludes} are used. * These defaults depend on the plugin. * For example, the default include of the Java compiler plugin is <code>"**/*.java"</code>. * * <p>If the user did not specify any excludes, the default is often files generatedRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 07 13:11:07 UTC 2025 - 14.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy
Violation violation = Violation.error( member, rejection.getHumanExplanation() + """. <br> <p> If you did this intentionally, please accept the change and provide an explanation:
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Dec 30 10:14:25 UTC 2025 - 10.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/handling-errors.md
Но оно будет обработано `unicorn_exception_handler`. Таким образом, вы получите чистую ошибку с кодом состояния HTTP `418` и содержимым JSON: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | Технические детали Также можно использовать `from starlette.requests import Request` и `from starlette.responses import JSONResponse`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
*/ @Override public void tearDown() throws Exception { try { Thread.class.getMethod("stop").invoke(this); join(); } catch (ReflectiveOperationException e) { // stop() threw or did not exist. Don't join() the thread, which might hang forever. } if (uncaughtThrowable != null) { throw new AssertionError("Uncaught throwable in " + getName(), uncaughtThrowable); } } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 11.4K bytes - Viewed (0)