Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testDefaults (0.05 sec)

  1. tests/test_forms_single_model.py

        assert response.json() == {
            "username": "Rick",
            "lastname": "Sanchez",
            "age": 70,
            "tags": ["plumbus", "citadel"],
            "with": "something",
        }
    
    
    def test_defaults():
        response = client.post("/form/", data={"username": "Rick", "lastname": "Sanchez"})
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "Rick",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top