Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 98 for testNet (0.17 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(client: TestClient):
        response = client.get("/items/plumbus")
        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    def test_internal_error(client: TestClient):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial008d_an_py39.py

        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    @needs_py39
    def test_get(client: TestClient):
        response = client.get("/items/plumbus")
        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    @needs_py39
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/net/http/httptest/server.go

    func (s *Server) StartTLS() {
    	if s.URL != "" {
    		panic("Server already started")
    	}
    	if s.client == nil {
    		s.client = &http.Client{}
    	}
    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		panic(fmt.Sprintf("httptest: NewTLSServer: %v", err))
    	}
    
    	existingConfig := s.TLS
    	if existingConfig != nil {
    		s.TLS = existingConfig.Clone()
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            assertThat(map.get("ONE"), is("1"));
            assertThat(map.get("One"), is("1"));
            assertThat(map.get("hoge"), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPut() throws Exception {
            assertThat(map.put("One", "11"), is("1"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/net/http/transport_internal_test.go

    func (f roundTripFunc) RoundTrip(r *Request) (*Response, error) {
    	return f(r)
    }
    
    // Issue 25009
    func TestTransportBodyAltRewind(t *testing.T) {
    	cert, err := tls.X509KeyPair(testcert.LocalhostCert, testcert.LocalhostKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	go func() {
    		tln := tls.NewListener(ln, &tls.Config{
    			NextProtos:   []string{"foo"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                }
            """
        }
    
        private static String pluginTestJava() {
            """
                package org.example;
    
                import org.gradle.testkit.runner.GradleRunner;
                import org.gradle.testkit.runner.BuildResult;
                import org.junit.jupiter.api.Test;
                import org.junit.jupiter.api.io.TempDir;
    
                import java.io.File;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsTestKitInjectedJavaPluginIntegrationTest.groovy

    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.test.precondition.Requires
    import org.gradle.test.preconditions.UnitTestPreconditions
    import org.gradle.testkit.runner.GradleRunner
    import org.gradle.testkit.runner.internal.ToolingApiGradleExecutor
    import org.gradle.util.SetSystemProperties
    import org.junit.Rule
    
    @Requires(UnitTestPreconditions.NotWindows)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/TestRetryPluginSmokeTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.smoketests
    
    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.testkit.runner.BuildResult
    import org.gradle.testkit.runner.TaskOutcome
    import spock.lang.Issue
    
    class TestRetryPluginSmokeTest extends AbstractSmokeTest {
        def setup() {
            sourceFile()
            testSourceFile()
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h

      // UnitTest has a guard to prevent from calling this method more then once.
      virtual void RegisterTests() {
        for (typename TestInfoContainer::iterator test_it = tests_.begin();
             test_it != tests_.end(); ++test_it) {
          linked_ptr<TestInfo> test_info = *test_it;
          for (typename InstantiationContainer::iterator gen_it =
                   instantiations_.begin(); gen_it != instantiations_.end();
                   ++gen_it) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/CacheResolveIntegrationTest.groovy

            abusedCoordinates.pom.file.replace('<groupId>org.spring</groupId>', '<groupId>org.spring/../../../../../</groupId>')
            // Our test dependency that now has a crafty dependency itself
            def testDep = mavenHttpRepo.module('org.test', 'test').dependsOn(pwnedDep, type: '/../../../../.ssh/pwned.txt').publish()
    
            def fakeDep = temporaryFolder.testDirectory.file('fake-repo/pwned.txt')
            fakeDep << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top