Coverage for functions \ flipdare \ mailer \ core \ base_email_formatter.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-05-08 12:22 +1000

1#!/usr/bin/env python 

2# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved. 

3# 

4# This file is part of Flipdare's proprietary software and contains 

5# confidential and copyrighted material. Unauthorised copying, 

6# modification, distribution, or use of this file is strictly 

7# prohibited without prior written permission from Flipdare Pty Ltd. 

8# 

9# This software includes third-party components licensed under MIT, 

10# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

11# 

12 

13from __future__ import annotations 

14 

15from abc import ABC, abstractmethod 

16from flipdare.app_types import ReportListType 

17 

18__all__ = ["BaseEmailFormatter"] 

19 

20 

21class BaseEmailFormatter(ABC): 

22 def __init__(self, headers: list[str], data: ReportListType) -> None: 

23 self.headers = headers 

24 self.data = data 

25 

26 @abstractmethod 

27 def tabulate_html(self) -> str: ... 

28 

29 @abstractmethod 

30 def tabulate_text(self) -> str: ...