Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 107 for get_app (0.04 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        for (Entry<K, V> entry : getSampleEntries()) {
          expectedHashCode += hash(entry);
        }
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries.",
            expectedHashCode,
            getMap().hashCode());
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testHashCode_containingNullKey() {
        Entry<K, V> entryWithNull = entry(null, v3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. docs_src/settings/app02/test_main.py

    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 29 09:26:07 UTC 2021
    - 515 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_settings/test_app02.py

        assert settings.app_name == "Awesome API"
        assert settings.items_per_user == 50
    
    
    @needs_pydanticv2
    def test_override_settings():
        from docs_src.settings.app02 import test_main
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 488 bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        for (Entry<K, V> entry : getSampleEntries()) {
          expectedHashCode += hash(entry);
        }
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries.",
            expectedHashCode,
            getMap().hashCode());
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testHashCode_containingNullKey() {
        Entry<K, V> entryWithNull = entry(null, v3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

      private Entry<K, V> a;
      private Entry<K, V> b;
      private Entry<K, V> c;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        navigableMap = (NavigableMap<K, V>) getMap();
        entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

    public class GroovyEngineTest extends LastaFluteTestCase {
        public GroovyEngine groovyEngine;
    
        @Override
        protected String prepareConfigFile() {
            return "test_app.xml";
        }
    
        @Override
        protected boolean isSuppressTestCaseTransaction() {
            return true;
        }
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/unit/UnitFessTestCase.java

    import org.dbflute.utflute.lastaflute.WebContainerTestCase;
    
    public abstract class UnitFessTestCase extends WebContainerTestCase {
        @Override
        protected String prepareConfigFile() {
            return "test_app.xml";
        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/middleware.md

    πŸ› οΈ 🚫 βœ”οΈ βš’ FastAPI βš–οΈ πŸ’ƒ πŸ‘·, πŸ“ ⚫️ ⏩ πŸ”« πŸ”Œ.
    
    🏒, πŸ”« πŸ› οΈ πŸŽ“ πŸ‘ˆ βŒ› πŸ“¨ πŸ”« πŸ“± πŸ₯‡ ❌.
    
    , 🧾 πŸ₯‰-πŸ₯³ πŸ”« πŸ› οΈ πŸ‘« πŸ”œ 🎲 πŸ’¬ πŸ‘† πŸ•³ πŸ’–:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    βœ‹οΈ FastAPI (πŸ€™ πŸ’ƒ) 🚚 πŸ™… 🌌 ⚫️ πŸ‘ˆ βš’ πŸ’­ πŸ‘ˆ πŸ”— πŸ› οΈ 🍡 πŸ’½ ❌ &amp; πŸ›ƒ ⚠ πŸ•β€πŸ¦Ί πŸ‘· β˜‘.
    
    πŸ‘ˆ, πŸ‘† βš™οΈ `app.add_middleware()` (πŸ–Ό ⚜).
    
    ```Python
    from fastapi import FastAPI
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/admin/SuggestTests.java

        protected void testRead() {
            final Map<String, Object> searchBody = new HashMap<>();
            String response = checkGetMethod(searchBody, "").asString();
            final Map<String, Object> res = JsonPath.from(response).getMap("response.setting");
            assertTrue(res.containsKey("total_words_num"));
            assertTrue(res.containsKey("document_words_num"));
            assertTrue(res.containsKey("query_words_num"));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/middleware.md

    EntΓ£o, na documentação de middlewares ASGI de terceiros, eles provavelmente dirΓ£o para vocΓͺ fazer algo como:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top