Coverage for tests\test_statistics.py: 100%

20 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-07 20:50 +0100

1def test_most_active_stores(client): 

2 response = client.get("/most_active_stores") 

3 assert response.status_code == 200 

4 assert "most_active_stores" in response.json() 

5 

6def test_most_reserved_products(client): 

7 response = client.get("/most_reserved_products") 

8 assert response.status_code == 200 

9 assert "most_reserved_products" in response.json() 

10 

11def test_most_active_assistants(client): 

12 response = client.get("/most_active_assistants") 

13 assert response.status_code == 200 

14 assert "most_active_assistants" in response.json() 

15 

16def test_most_active_clients_with_reservations(client): 

17 response = client.get("/most_active_clients") 

18 assert response.status_code == 200 

19 assert "most_active_clients" in response.json() 

20 

21 

22def test_most_reserved_products_with_data(client): 

23 response = client.get("/most_reserved_products") 

24 assert response.status_code == 200 

25 assert "most_reserved_products" in response.json()