Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_complex (0.04 sec)

  1. tests/test_compat.py

        from fastapi._compat import v2
    
        # For coverage
        field_info = FieldInfo(annotation=str)
        field = v2.ModelField(name="foo", field_info=field_info)
        assert field.default is Undefined
    
    
    def test_complex():
        app = FastAPI()
    
        @app.post("/")
        def foo(foo: Union[str, list[int]]):
            return foo
    
        client = TestClient(app)
    
        response = client.post("/", json="bar")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

    import static org.apache.maven.api.Lifecycle.Phase.RESOURCES;
    import static org.apache.maven.api.Lifecycle.Phase.SOURCES;
    import static org.apache.maven.api.Lifecycle.Phase.TEST;
    import static org.apache.maven.api.Lifecycle.Phase.TEST_COMPILE;
    import static org.apache.maven.api.Lifecycle.Phase.TEST_RESOURCES;
    import static org.apache.maven.api.Lifecycle.Phase.TEST_SOURCES;
    import static org.apache.maven.api.Lifecycle.Phase.UNIT_TEST;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 20.1K bytes
    - Viewed (0)
Back to top