Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 268 for cark (0.15 sec)

  1. docs_src/async_tests/test_main.py

    import pytest
    from httpx import AsyncClient
    
    from .main import app
    
    
    @pytest.mark.anyio
    async def test_root():
        async with AsyncClient(app=app, base_url="http://test") as ac:
            response = await ac.get("/")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 06 15:32:11 GMT 2021
    - 306 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_extra_models/test_tutorial003_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_get_car(client: TestClient):
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    @needs_py310
    def test_get_plane(client: TestClient):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/CIBuildModel.kt

        // Include cross version tests, these take care of selecting a very small set of versions to cover when run as part of this stage, including the current version
        quick(true, true, true, 120, 4),
    
        // Include cross version tests, these take care of selecting a very small set of versions to cover when run as part of this stage, including the current version
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Feb 23 01:54:48 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/async-tests.md

    Schauen wir uns an, wie wir das machen kΓΆnnen.
    
    ## pytest.mark.anyio
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:25:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. cmd/leak-detect_test.go

    	for _, stackFn := range ignoredStackFns {
    		if !strings.Contains(stack, stackFn) {
    			ok = false
    			continue
    		}
    		break
    	}
    	return ok
    }
    
    // pickRelevantGoroutines returns all goroutines we care about for the purpose
    // of leak checking. It excludes testing or runtime ones.
    func pickRelevantGoroutines() (gs []string) {
    	// get runtime stack buffer.
    	buf := debug.Stack()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/async-tests.md

    βž– πŸ’ͺ βš™οΈ πŸ” πŸ”’ πŸ‘† πŸ’― πŸ’ͺ ⚠, πŸ–Ό, πŸ•β” πŸ‘† πŸ”¬ πŸ‘† πŸ’½ πŸ”. 🌈 πŸ‘† πŸ’š πŸ’― πŸ“¨ πŸ“¨ πŸ‘† FastAPI 🈸 & ‴️ βœ” πŸ‘ˆ πŸ‘† πŸ‘©β€πŸ’» βͺ ✍ β˜‘ πŸ’½ πŸ’½, βͺ βš™οΈ πŸ” πŸ’½ πŸ—ƒ.
    
    ➑️ πŸ‘€ ❔ πŸ‘₯ πŸ’ͺ βš’ πŸ‘ˆ πŸ‘·.
    
    ## pytest.mark.anyio
    
    πŸš₯ πŸ‘₯ πŸ’š πŸ€™ πŸ” πŸ”’ πŸ‘† πŸ’―, πŸ‘† πŸ’― πŸ”’ βœ”οΈ πŸ”. AnyIO 🚚 πŸ‘Œ πŸ“ πŸ‘‰, πŸ‘ˆ βœ” πŸ‘₯ βœ” πŸ‘ˆ πŸ’― πŸ”’ πŸ€™ πŸ”.
    
    ## πŸ‡ΈπŸ‡²
    
    πŸš₯ πŸ‘† **FastAPI** 🈸 βš™οΈ 😐 `def` πŸ”’ ↩️ `async def`, ⚫️ `async` 🈸 πŸ”˜.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3K bytes
    - Viewed (0)
  7. docs/distributed/CONFIG.md

    - Reload() of MinIO server arguments without fully restarting the process.
    
    - Expanding 1 node at a time by automating the process of creating a new pool
      and decommissioning to provide a functionality that smaller deployments
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public int compareTo(Delayed other) {
          throw new UnsupportedOperationException("test should not care about this");
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_cookie_params/test_tutorial001_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.cookie_params.tutorial001_an import app
    
    
    @pytest.mark.parametrize(
        "path,cookies,expected_status,expected_response",
        [
            ("/items", None, 200, {"ads_id": None}),
            ("/items", {"ads_id": "ads_track"}, 200, {"ads_id": "ads_track"}),
            (
                "/items",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_params/test_tutorial002.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.header_params.tutorial002 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"strange_header": None}),
            ("/items", {"X-Header": "notvalid"}, 200, {"strange_header": None}),
            (
                "/items",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top