Coverage for django_query_capture/presenter/base.py: 83%

6 statements  

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

1from django_query_capture.classify import ClassifiedQuery 

2 

3 

4class BasePresenter: 

5 """ 

6 This is the parent value that can be set to [PRESENTER](../../home/settings.md) setting.<br> 

7 You can use the [classified_query][classify.ClassifiedQuery] attribute to determine the output.<br> 

8 The output can be completed by overriding the print method using the [classified_query][classify.ClassifiedQuery] attributes. 

9 """ 

10 

11 def __init__(self, classified_query: ClassifiedQuery): 

12 self.classified_query = classified_query 

13 

14 def print(self) -> None: 

15 raise NotImplementedError