Coverage for tire/base_tire.py: 100%

4 statements  

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

1"""Defines the base class for creating tire objects. 

2""" 

3 

4from abc import ABC, abstractmethod 

5 

6 

7class Tire(ABC): 

8 """Creates Tire objects. 

9 

10 Inherits from the ABC class. 

11 

12 methods: 

13 needs_serviced: Determines if the tire should be serviced. 

14 """ 

15 @abstractmethod 

16 def needs_service(self): 

17 """Determines if the tire should be serviced. 

18 

19 This method Needs to be implemented by the subclass. 

20 """