Coverage for django_query_capture/presenter/simple.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-11-20 10:20 +0000

1from .base import BasePresenter 

2 

3 

4class SimplePresenter(BasePresenter): 

5 """ 

6 only print total queries, duration. 

7 """ 

8 

9 def print(self) -> None: 

10 print( 

11 f'total: {self.classified_query["total"]} queries in {self.classified_query["total_duration"]:.2f} seconds' 

12 )