Coverage for /home/runner/work/bijux-cli/bijux-cli/src/bijux_cli/services/doctor.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.10.4, created at 2025-08-19 23:36 +0000

1# SPDX-License-Identifier: MIT 

2# Copyright © 2025 Bijan Mousavi 

3 

4"""Provides the concrete implementation of the CLI health check service. 

5 

6This module defines the `Doctor` class, which implements the `DoctorProtocol`. 

7It is responsible for performing diagnostic health checks on the application 

8and its environment. 

9""" 

10 

11from __future__ import annotations 

12 

13from bijux_cli.contracts import DoctorProtocol 

14 

15 

16class Doctor(DoctorProtocol): 

17 """An implementation of the health check service. 

18 

19 This class provides a simple health check method that can be extended in the 

20 future to verify dependencies, such as database connections or external API 

21 reachability. 

22 """ 

23 

24 def check_health(self) -> str: 

25 """Performs a basic health check on the application. 

26 

27 Returns: 

28 str: A string indicating the health status. Currently always 

29 returns "healthy". 

30 """ 

31 return "healthy" 

32 

33 

34__all__ = ["Doctor"]