Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_sub_router (0.08 sec)

  1. tests/test_dependency_cache.py

        assert response.json() == {"counter": 1}
        response = client.get("/counter/")
        assert response.status_code == 200, response.text
        assert response.json() == {"counter": 2}
    
    
    def test_sub_counter():
        counter_holder["counter"] = 0
        response = client.get("/sub-counter/")
        assert response.status_code == 200, response.text
        assert response.json() == {"counter": 1, "subcounter": 1}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top