Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 393 for test32 (0.27 sec)

  1. 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)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedFilesApiIntegrationTest.groovy

            outputContains("files 9: [test-lib.jar, a.jar, a-lib.jar, b.jar, b-lib.jar, test2-1.0.jar, test-1.0.jar")
            outputContains("files 10: [test-lib.jar, a.jar, a-lib.jar, b.jar, b-lib.jar, test2-1.0.jar, test-1.0.jar")
            outputContains("files 11: [test-lib.jar, a.jar, a-lib.jar, b.jar, b-lib.jar, test2-1.0.jar, test-1.0.jar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. pkg/kubelet/config/mux_test.go

    	mux := newMux(mergeFunc(func(source string, update interface{}) error {
    		switch source {
    		case "one":
    			if update.(string) != "test" {
    				t.Errorf("Expected %s, Got %s", "test", update)
    			}
    		case "two":
    			if update.(string) != "test2" {
    				t.Errorf("Expected %s, Got %s", "test2", update)
    			}
    		default:
    			t.Errorf("Unexpected source, Got %s", update)
    		}
    		ch <- true
    		return nil
    	}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 20:02:23 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/groovy/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)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomResolutionTest.kt

    import org.junit.jupiter.api.Test
    import kotlin.test.assertEquals
    
    
    object DomResolutionTest {
    
        @Test
        fun `resolves declarative document`() {
            val resolver = tracingCodeResolver()
    
            val topLevelBlock = parseAsTopLevelBlock(
                """
                addAndConfigure("test") {
                    number = 123
                }
                justAdd("test2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestReportDataCollectorSpec.groovy

            collector.beforeTest(test)
            collector.beforeTest(test2)
            collector.onOutput(test, new DefaultTestOutputEvent(StdErr, "err-1"))
            collector.onOutput(test2, new DefaultTestOutputEvent(StdOut, "out-2"))
            collector.onOutput(test, new DefaultTestOutputEvent(StdOut, "out-1"))
    
            then:
            1 * writer.onOutput(3, 1, new DefaultTestOutputEvent(StdErr, "err-1"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/VersionCatalogExtensionIntegrationTest.groovy

                    implementation(libs.test1) {
                        because("reason1")
    
                        exclude(group: "test-group", module: "test-module")
                        artifact {
                            name = "test-name"
                            classifier = "test-classifier"
                            extension = "test-ext"
                            type = "test-type"
                            url = "test-url"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 77.8K bytes
    - Viewed (0)
  8. src/internal/gover/gover_test.go

    	in2 In2
    	in3 In3
    	out Out
    }
    
    func test1[In, Out any](t *testing.T, tests []testCase1[In, Out], name string, f func(In) Out) {
    	t.Helper()
    	for _, tt := range tests {
    		if out := f(tt.in); !reflect.DeepEqual(out, tt.out) {
    			t.Errorf("%s(%v) = %v, want %v", name, tt.in, out, tt.out)
    		}
    	}
    }
    
    func test2[In1, In2, Out any](t *testing.T, tests []testCase2[In1, In2, Out], name string, f func(In1, In2) Out) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ProjectDependencyTest.groovy

    import groovy.xml.XmlParser
    import spock.lang.Specification
    
    
    class ProjectDependencyTest extends Specification {
        final static String XML_TEXT = '''
                    <classpathentry kind="src" path="/test2" exported="true">
                        <attributes>
                            <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="mynative"/>
                        </attributes>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/TestClassExecutionEventGeneratorTest.groovy

        def "fires event on test class failure when some tests have been started"() {
            def failure = TestFailure.fromTestFrameworkFailure(new RuntimeException())
            TestDescriptorInternal test1 = Mock()
            TestDescriptorInternal test2 = Mock()
    
            given:
            idGenerator.generateId() >> 1
            test1.id >> 2
            test2.id >> 3
    
            and:
            processor.testClassStarted("some-test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top