Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 619 for john (0.92 sec)

  1. tests/test_tutorial/test_python_types/test_tutorial012.py

    from docs_src.python_types.tutorial012_py39 import User
    
    
    def test_user():
        user = User(name="John Doe", age=30)
        assert user.name == "John Doe"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 177 bytes
    - Viewed (0)
  2. fess-crawler/src/test/resources/extractor/csv/test.csv

    Name,Email,Age,Department
    John Doe,john@example.com,30,Engineering
    Jane Smith,******@****.***,28,Marketing
    Bob Johnson,******@****.***,35,Sales
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 193 bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java

        }
    
        public void test_putValue() {
            // Test putValue method
            ExtractData data = new ExtractData();
    
            data.putValue("title", "Test Title");
            data.putValue("author", "John Doe");
    
            String[] titleValues = data.getValues("title");
            assertNotNull(titleValues);
            assertEquals(1, titleValues.length);
            assertEquals("Test Title", titleValues[0]);
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. docs_src/python_types/tutorial011_py39.py

    from pydantic import BaseModel
    
    
    class User(BaseModel):
        id: int
        name: str = "John Doe"
        signup_ts: Union[datetime, None] = None
        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 02 15:56:35 UTC 2023
    - 492 bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/extra-models.md

    Pydantic models have a `.model_dump()` method that returns a `dict` with the model's data.
    
    So, if we create a Pydantic object `user_in` like:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    and then we call:
    
    ```Python
    user_dict = user_in.model_dump()
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py

                "password": "secret",
                "email": "******@****.***",
                "full_name": "John Doe",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "johndoe",
            "email": "******@****.***",
            "full_name": "John Doe",
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial002.py

                "user": {"username": "johndoe", "full_name": "John Doe"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": "Some Foo",
                "tax": 0.1,
            },
            "user": {"username": "johndoe", "full_name": "John Doe"},
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial002.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "testtokenfakedecoded",
            "email": "john@example.com",
            "full_name": "John Doe",
            "disabled": None,
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. internal/s3select/json/testdata/6.json

    { "name": "John", "age":28, "hobby": { "name": "chess", "type": "boardgame" }}...
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 79 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py

        assert "/static/redoc.standalone.js" in response.text
    
    
    def test_api(client: TestClient):
        response = client.get("/users/john")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.2K bytes
    - Viewed (0)
Back to top