Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 1,963 for Cliente (0.04 sec)

  1. tests/test_security_scopes_sub_dependency.py

                "user_items": user_items,
            }
    
        return app
    
    
    @pytest.fixture(name="client")
    def client_fixture(app: FastAPI):
        return TestClient(app)
    
    
    def test_security_scopes_sub_dependency_caching(
        client: TestClient, call_counts: dict[str, int]
    ):
        response = client.get("/")
    
        assert response.status_code == 200
        assert call_counts["get_db_session"] == 1
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/response-status-code.md

    * **`300 - 399`** stehen für „Redirection“ („Umleitung“). Responses mit diesen Statuscodes können einen Body haben oder nicht, außer bei `304`, „Not Modified“ („Nicht verändert“), die keinen haben darf.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. docs_src/settings/app02_an_py39/test_main.py

    from .config import Settings
    from .main import app, get_settings
    
    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 515 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from docs_src.custom_response.tutorial008_py39 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008_py39.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 502 bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        }
      }
    
      @Test
      fun none() {
        server.enqueue(MockResponse())
        client.newCall(request().build()).execute()
        applicationLogs.assertNoMoreLogs()
        networkLogs.assertNoMoreLogs()
      }
    
      @Test
      fun basicGet() {
        setLevel(Level.BASIC)
        server.enqueue(MockResponse())
        client.newCall(request().build()).execute()
        applicationLogs
          .assertLogEqual("--> GET $url")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 39.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/DefaultJavaToolChain.java

    import org.slf4j.Logger;
    
    /**
     * Provides backwards compatibility with Maven 3.2.3 and earlier. Clients that do not require compatibility with Maven
     * 3.2.3 and earlier are encouraged to use {@link JavaToolchainImpl}.
     * <strong>Note:</strong> This is an internal component whose interface can change without prior notice.
     *
     * @deprecated clients that do not require compatibility with Maven 3.2.3 and earlier should link to
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. docs_src/app_testing/tutorial003_py39.py

        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
        with TestClient(app) as client:
            response = client.get("/items/foo")
            assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 528 bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

        val request =
          Request
            .Builder()
            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(ProgressRequestBody(requestBody, progressListener))
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. tests/test_response_change_status_code.py

        return result
    
    
    @app.get("/", dependencies=[Depends(parent_dep)])
    async def get_main():
        return {"msg": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_dependency_set_status_code():
        response = client.get("/")
        assert response.status_code == 201, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Apr 08 04:37:38 UTC 2020
    - 589 bytes
    - Viewed (0)
  10. tests/test_stringified_annotations_simple.py

            return "test"
    
    
    @needs_py310
    def test_stringified_annotations():
        app = FastAPI()
    
        client = TestClient(app)
    
        @app.get("/test/")
        def call(test: Annotated[str, Depends(Dep())]):
            return {"test": test}
    
        response = client.get("/test")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 545 bytes
    - Viewed (0)
Back to top