Coverage for / home / runner / work / bijux-cli / bijux-cli / src / bijux_cli / services / diagnostics / doctor.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-01-26 17:59 +0000
« prev ^ index » next coverage.py v7.13.2, created at 2026-01-26 17:59 +0000
1# SPDX-License-Identifier: Apache-2.0
2# Copyright © 2025 Bijan Mousavi
4"""Provides the concrete implementation of the CLI health check service.
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"""
11from __future__ import annotations
13from bijux_cli.services.diagnostics.contracts import DoctorProtocol
16class Doctor(DoctorProtocol):
17 """An implementation of the health check service.
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 """
24 def check_health(self) -> str:
25 """Performs a basic health check on the application.
27 Returns:
28 str: A string indicating the health status. Currently always
29 returns "healthy".
30 """
31 return "healthy"
34__all__ = ["Doctor"]