Coverage for battery/base_battery.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.4.3, created at 2024-03-09 21:08 +0000

1"""This module implements the Battery class, 

2which is responsible for creating Battery objects.""" 

3 

4 

5from abc import ABC, abstractmethod 

6 

7 

8class Battery(ABC): 

9 """This class defines basic attributes of Batteries objects. 

10 """ 

11 @abstractmethod 

12 def needs_service(self): 

13 """Determines if the batery should be serviced.  

14 

15 This method Needs to be implemented by the subclass. 

16 """