Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 315 for generadora (0.06 seconds)

  1. tests/test_dependency_after_yield_websockets.py

    from collections.abc import Generator
    from contextlib import contextmanager
    from typing import Annotated, Any
    
    import pytest
    from fastapi import Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.data = ["foo", "bar", "baz"]
            self.open = True
    
        def __iter__(self) -> Generator[str, None, None]:
            for item in self.data:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_html_links/data/en_doc.md

    Two links here: <a href="https://fastapi.tiangolo.com/how-to/">How to</a> and <a href="project-generation.md" class="internal-link" target="_blank">Project Generators</a>.
    
    ### Header 3 { #header-3 }
    
    Another link: <a href="project-generation.md" class="internal-link" target="_blank" title="Link title">**FastAPI** Project Generators</a> with title.
    
    # Header 4 { #header-4 }
    
    Link to anchor: <a href="#header-2">Header 2</a>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 644 bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/QueueTestSuiteBuilder.java

    public final class QueueTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>, E> {
      public static <E> QueueTestSuiteBuilder<E> using(TestQueueGenerator<E> generator) {
        return new QueueTestSuiteBuilder<E>().usingGenerator(generator);
      }
    
      private boolean runCollectionTests = true;
    
      /**
       * Specify whether to skip the general collection tests. Call this method when testing a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  4. tests/test_router_events.py

        assert state.app_shutdown is True
    
    
    def test_router_sync_generator_lifespan(state: State) -> None:
        """Test that a sync generator lifespan works via _wrap_gen_lifespan_context."""
        from collections.abc import Generator
    
        def lifespan(app: FastAPI) -> Generator[None, None, None]:
            state.app_startup = True
            yield
            state.app_shutdown = True
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          generator.addSampleInstances((Class) entry.getKey(), entry.getValue());
        }
        return generator;
      }
    
      private static @Nullable Object generateDummyArg(Parameter param, FreshValueGenerator generator)
          throws ParameterNotInstantiableException {
        if (isNullable(param)) {
          return null;
        }
        Object arg = generator.generateFresh(param.getType());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java

      public static <K, V> SortedSetMultimapTestSuiteBuilder<K, V> using(
          TestSetMultimapGenerator<K, V> generator) {
        SortedSetMultimapTestSuiteBuilder<K, V> result = new SortedSetMultimapTestSuiteBuilder<>();
        result.usingGenerator(generator);
        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. tests/test_dependency_partial.py

    from functools import partial
    from typing import Annotated
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def function_dependency(value: str) -> str:
        return value
    
    
    async def async_function_dependency(value: str) -> str:
        return value
    
    
    def gen_dependency(value: str) -> Generator[str, None, None]:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/behind-a-proxy.md

    Por ejemplo:
    
    {* ../../docs_src/behind_a_proxy/tutorial003_py310.py hl[4:7] *}
    
    Generará un esquema de OpenAPI como:
    
    ```JSON hl_lines="5-7"
    {
        "openapi": "3.1.0",
        // Más cosas aquí
        "servers": [
            {
                "url": "/api/v1"
            },
            {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 16.5K bytes
    - Click Count (0)
Back to Top