Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 3,475 for getE (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        Collection<V> result = multimap().asMap().get(k0());
        result.add(v3());
        assertContentsAnyOrder(multimap().get(k0()), v0(), v3());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, SUPPORTS_PUT})
      public void testPropagatesRemoveThenAddToMultimap() {
        int oldSize = getNumElements();
    
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial006.py

    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
        response = client.get("/users/me")
        assert response.json() == {"detail": "Not authenticated"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

                0, unhashables.e0(), 2, "hey you", 0, unhashables.e1());
        assertEquals(2, multimap.get(0).size());
        assertTrue(multimap.get(0).contains(unhashables.e0()));
        assertTrue(multimap.get(0).contains(unhashables.e1()));
        assertTrue(multimap.get(2).contains("hey you"));
      }
    
      public void testEquals() {
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tests/test_repeated_parameter_alias.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/{repeated_alias}")
    def get_parameters_with_repeated_aliases(
        path: str = Path(..., alias="repeated_alias"),
        query: str = Query(..., alias="repeated_alias"),
    ):
        return {"path": path, "query": query}
    
    
    client = TestClient(app)
    
    
    def test_get_parameters():
        response = client.get("/test_path", params={"repeated_alias": "test_query"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java

            assertEquals(4, problems.messages.size());
            assertContains(problems.messages.get(0), "'mirrors.mirror.id' must not be 'local'");
            assertContains(problems.messages.get(1), "'mirrors.mirror.url' for local is missing");
            assertContains(problems.messages.get(2), "'mirrors.mirror.mirrorOf' for local is missing");
            assertContains(problems.messages.get(3), "'mirrors.mirror.id' must not contain any of these characters");
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tests/test_deprecated_openapi_prefix.py

    from fastapi.testclient import TestClient
    
    app = FastAPI(openapi_prefix="/api/v1")
    
    
    @app.get("/app")
    def read_main(request: Request):
        return {"message": "Hello World", "root_path": request.scope.get("root_path")}
    
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py

        ],
    )
    def test_query_params_str_validations(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.putAll("foo", Arrays.asList(6, 7));
        Multimap<String, Integer> multimap = builder.build();
        assertThat(multimap.get("foo")).containsExactly(1, 2, 3, 6, 7).inOrder();
        assertThat(multimap.get("bar")).containsExactly(4, 5).inOrder();
        assertEquals(7, multimap.size());
      }
    
      public void testBuilderPutAllVarargs() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. tests/test_computed_fields.py

            length: int
    
            @computed_field
            @property
            def area(self) -> int:
                return self.width * self.length
    
        @app.get("/")
        def read_root() -> Rectangle:
            return Rectangle(width=3, length=4)
    
        @app.get("/responses", responses={200: {"model": Rectangle}})
        def read_responses() -> Rectangle:
            return Rectangle(width=3, length=4)
    
        client = TestClient(app)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/BaseCIFSTest.java

        }
    
    
        protected String getTestDomain () {
            String testDomain = getProperties().get(TestProperties.TEST_DOMAIN);
            Assume.assumeNotNull(testDomain);
            return testDomain;
        }
    
    
        protected String getTestServer () {
            String testServer = getProperties().get(TestProperties.TEST_SERVER);
            Assume.assumeNotNull(testServer);
            return testServer;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
Back to top