Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for Ok (0.01 sec)

  1. tests/test_dependency_paramless.py

        dependencies=[Security(process_auth, scopes=["a", "b"])],
    )
    def get_parameterless_with_scopes():
        return {"status": "ok"}
    
    
    @app.get(
        "/parameterless-without-scopes",
        dependencies=[Security(process_auth)],
    )
    def get_parameterless_without_scopes():
        return {"status": "ok"}
    
    
    client = TestClient(app)
    
    
    def test_get_credentials():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. tests/test_dependency_yield_scope.py

            assert response.status_code == 200
            assert response.json() == {"status": "ok"}
    
    
    def test_app_level_dep_scope_function() -> None:
        app = FastAPI(dependencies=[Depends(raise_after_yield, scope="function")])
    
        @app.get("/app-scope-function")
        def get_app_scope_function():
            return {"status": "ok"}
    
        with TestClient(app) as client:
            response = client.get("/app-scope-function")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. fastapi/concurrency.py

        exit_limiter = CapacityLimiter(1)
        try:
            yield await run_in_threadpool(cm.__enter__)
        except Exception as e:
            ok = bool(
                await anyio.to_thread.run_sync(
                    cm.__exit__, type(e), e, e.__traceback__, limiter=exit_limiter
                )
            )
            if not ok:
                raise e
        else:
            await anyio.to_thread.run_sync(
                cm.__exit__, None, None, None, limiter=exit_limiter
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. tests/test_sub_callbacks.py

                        },
                        "InvoiceEventReceived": {
                            "title": "InvoiceEventReceived",
                            "required": ["ok"],
                            "type": "object",
                            "properties": {"ok": {"title": "Ok", "type": "boolean"}},
                        },
                        "ValidationError": {
                            "title": "ValidationError",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

                        },
                    },
                    "InvoiceEventReceived": {
                        "title": "InvoiceEventReceived",
                        "required": ["ok"],
                        "type": "object",
                        "properties": {"ok": {"title": "Ok", "type": "boolean"}},
                    },
                    "ValidationError": {
                        "title": "ValidationError",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            try {
              delay(timeoutMillis);
            } catch (InterruptedException ok) {
            }
          }
        };
      }
    
      public class MediumPossiblyInterruptedRunnable extends CheckedRunnable {
        @Override
        protected void realRun() {
          try {
            delay(MEDIUM_DELAY_MS);
          } catch (InterruptedException ok) {
          }
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  7. docs_src/openapi_callbacks/tutorial001_py310.py

        id: str
        title: str | None = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    @invoices_callback_router.post(
        "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

                    return Result.OK;
                } finally {
                    reader.dispose();
                }
            }
            return Result.FAILED;
        }
    
        /**
         * Enumeration representing the possible results of thumbnail image processing.
         */
        protected enum Result {
            /** Thumbnail was successfully generated */
            OK,
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. tests/test_allow_inf_nan_in_enforcing.py

        x: Annotated[float, Query(allow_inf_nan=True)] = 0,
        y: Annotated[float, Query(allow_inf_nan=False)] = 0,
        z: Annotated[float, Query()] = 0,
        b: Annotated[float, Body(allow_inf_nan=False)] = 0,
    ) -> str:
        return "OK"
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "value,code",
        [
            ("-1", 200),
            ("inf", 200),
            ("-inf", 200),
            ("nan", 200),
            ("0", 200),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  10. tests/test_pydantic_v1_error.py

            @app.get(
                "/responses", response_model=None, responses={400: {"model": ErrorModelV1}}
            )
            def endpoint():  # pragma: no cover
                return {"ok": True}
    
    
    def test_raises_pydantic_v1_model_in_union() -> None:
        class ModelV1A(BaseModel):
            name: str
    
        app = FastAPI()
    
        with pytest.raises(PydanticV1NotSupportedError):
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top