Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 366 for model1 (0.14 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingModelsWithDependencyResolutionIntegrationTest.groovy

            when:
            executer.withArguments(ENABLE_CLI)
            def model2 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model2.size() == 4
            model2[0].message == "project :a classpath = 2"
            model2[1].message == "project :b classpath = 1"
            model2[2].message == "project :c classpath = 0"
            model2[3].message == "project :d classpath = 0"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCoupledProjectsIntegrationTest.groovy

            }
    
            when:
            executer.withArguments(ENABLE_CLI)
            def model2 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model2.size() == 3
            model2[0].message == "project a"
            model2[1].message == "project b"
            model2[2].message == "It works from project :c"
    
            and:
            fixture.assertStateLoaded()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleLifecycleIntegrationTest.groovy

            """
    
            withIsolatedProjects()
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model3.size() == 2
            model3[0].message == "updated message for root"
            model3[1].message == "It works from project :a"
    
            fixture.assertStateUpdated {
                fileChanged("build.gradle")
                projectConfigured(":buildSrc")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. tests/test_filter_pydantic_sub_model/app_pv1.py

            return name
    
    
    async def get_model_c() -> ModelC:
        return ModelC(username="test-user", password="test-password")
    
    
    @app.get("/model/{name}", response_model=ModelA)
    async def get_model_a(name: str, model_c=Depends(get_model_c)):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 784 bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            when:
            executer.withArguments(ENABLE_CLI)
            def model2 = fetchModel(GradleBuild)
    
            then:
            model2.rootProject.name == "root"
            model2.projects.size() == 3
            model2.projects[0].name == "root"
            model2.projects[1].name == "a"
            model2.projects[2].name == "b"
    
            and:
            fixture.assertStateLoaded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tests/test_duplicate_models_openapi.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Model(BaseModel):
        pass
    
    
    class Model2(BaseModel):
        a: Model
    
    
    class Model3(BaseModel):
        c: Model
        d: Model2
    
    
    @app.get("/", response_model=Model3)
    def f():
        return {"c": {}, "d": {"a": {}}}
    
    
    client = TestClient(app)
    
    
    def test_get_api_route():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            server.expectConcurrent("model-a", "model-b")
    
            executer.withArguments(ENABLE_CLI)
            def model3 = runBuildAction(new FetchCustomModelForEachProjectInParallel())
    
            then:
            model3.size() == 3
            model3[0].message == "It works from project :"
            model3[1].message == "this is project a"
            model3[2].message == "this is project b"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py

        return client
    
    
    @needs_pydanticv1
    def test_filter_sub_model(client: TestClient):
        response = client.get("/model/modelA")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "modelA",
            "description": "model-a-desc",
            "model_b": {"username": "test-user"},
        }
    
    
    @needs_pydanticv1
    def test_validator_is_cloned(client: TestClient):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. tests/test_filter_pydantic_sub_model_pv2.py

                return name
    
        async def get_model_c() -> ModelC:
            return ModelC(username="test-user", password="test-password")
    
        @app.get("/model/{name}", response_model=ModelA)
        async def get_model_a(name: str, model_c=Depends(get_model_c)):
            return {"name": name, "description": "model-a-desc", "foo": model_c}
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv2
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiPhasedBuildActionIntegrationTest.groovy

            def model2 = models2.right
            model2.size() == 2
            model2[0].message == "It works from project :"
            model2[1].message == "It works from project :a"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
        }
    
        def "caches execution of phased BuildAction that queries custom tooling model and that runs tasks"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top