Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fake_db (0.04 sec)

  1. tests/test_tutorial/test_encoder/test_tutorial001.py

    def test_put(client: TestClient, mod: ModuleType):
        fake_db = mod.fake_db
    
        response = client.put(
            "/items/123",
            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
                "description": "An optional description",
            },
        )
        assert response.status_code == 200
        assert "123" in fake_db
        assert fake_db["123"] == {
            "title": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top