Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Treat (0.15 sec)

  1. tests/test_tutorial/test_bigger_applications/test_main_an.py

            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "plumbus", "name": "The great Plumbus"}
    
    
    def test_put_forbidden(client: TestClient):
        response = client.put(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "plumbus", "name": "The great Plumbus"}
    
    
    @needs_py39
    def test_put_forbidden(client: TestClient):
        response = client.put(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app/routers/items.py

    async def update_item(item_id: str):
        if item_id != "plumbus":
            raise HTTPException(
                status_code=403, detail="You can only update the item: plumbus"
            )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Nov 29 17:32:18 GMT 2020
    - 1011 bytes
    - Viewed (0)
  4. configure.py

        version: a version to be converted
    
      Returns:
        An integer if converted successfully, otherwise return None.
      """
      version = version.split('-')[0]
      version_segments = version.split('.')
      # Treat "0.24" as "0.24.0"
      if len(version_segments) == 2:
        version_segments.append('0')
      for seg in version_segments:
        if not seg.isdigit():
          return None
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  5. docs_src/bigger_applications/app_an_py39/routers/items.py

    async def update_item(item_id: str):
        if item_id != "plumbus":
            raise HTTPException(
                status_code=403, detail="You can only update the item: plumbus"
            )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1011 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_bigger_applications/test_main.py

            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "plumbus", "name": "The great Plumbus"}
    
    
    def test_put_forbidden(client: TestClient):
        response = client.put(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  7. docs_src/bigger_applications/app_an/routers/items.py

    async def update_item(item_id: str):
        if item_id != "plumbus":
            raise HTTPException(
                status_code=403, detail="You can only update the item: plumbus"
            )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1011 bytes
    - Viewed (0)
Back to top