Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 495 for test32 (0.12 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial003_py39.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/kotlin/src/test/java/org/gradle/testng/TestFactory.java

    package org.gradle.testng;
    
    import org.testng.annotations.AfterClass;
    import org.testng.annotations.BeforeClass;
    import org.testng.annotations.DataProvider;
    import org.testng.annotations.Factory;
    import org.testng.annotations.Test;
    
    public class TestFactory {
    
        @DataProvider(name = "data")
        public static Object[][] provide() {
            return new Object[][] {
                { "data1" },
                { "data2" }
            };
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial002_py39.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGGroupByInstancesIntegrationTest.groovy

                    }
    
                    @Test
                    public void test1() {
                        System.out.println("TestFactory[" + data + "].test1()");
                    }
    
                    @Test(dependsOnMethods = {"test1"})
                    public void test2() {
                        System.out.println("TestFactory[" + data + "].test2()");
                    }
    
                    @AfterClass
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_files/test_tutorial002_an.py

    def test_post_files(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/IncrementalAntlrTaskIntegrationTest.groovy

            when:
            grammar("Test1", "Test2")
            then:
            succeeds("generateGrammarSource")
    
            test1TokenFile.exists()
            test1LexerFile.exists()
            test1ParserFile.exists()
    
            test2TokenFile.exists()
            test2LexerFile.exists()
            test2ParserFile.exists()
    
            when:
            removedGrammar("Test1")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy

                assert it.group == "task group ${it.name-'test'}"
            }
        }
    
        def "provide getGroup on Task using GradleProject shouldn't fail if group is null"() {
            file("build.gradle") << '''
    task test1()
    task test2()
    '''
    
            when:
            def gradleProject = withConnection { ProjectConnection connection ->
                connection.getModel(GradleProject)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    			evaluations: []cel.EvaluationResult{
    				{
    					EvalResult: celtypes.False,
    					ExpressionAccessor: &MatchCondition{
    						Name: "test1",
    					},
    				},
    				{
    					EvalResult: celtypes.True,
    					ExpressionAccessor: &MatchCondition{
    						Name: "test2",
    					},
    				},
    			},
    			shouldMatch:  false,
    			returnedName: "test1",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. tests/test_annotated.py

    def test_multiple_path():
        app = FastAPI()
    
        @app.get("/test1")
        @app.get("/test2")
        async def test(var: Annotated[str, Query()] = "bar"):
            return {"foo": var}
    
        client = TestClient(app)
        response = client.get("/test1")
        assert response.status_code == 200
        assert response.json() == {"foo": "bar"}
    
        response = client.get("/test1", params={"var": "baz"})
        assert response.status_code == 200
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top