Orchestrata Ultimate › Tests › Reference › generated_recovery › test_providers_health_monitor
Tests reference — tests/generated_recovery/test_providers_health_monitor.py
Module of tests/generated_recovery, split out because the directory page would be too large.
Prose pending.
tests/generated_recovery/test_providers_health_monitor.py
source · 11 tests · 200 lines
Auto-generated tests for: providers.health_monitor
Covers: providers.health_monitor
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestRequestMetricDataclass |
33 | Structural tests for @dataclass RequestMetric. |
| method | TestRequestMetricDataclass.test_default_values |
43 | Default values must match the class definition. |
| method | TestRequestMetricDataclass.test_field_assignment_and_readback |
51 | |
| method | TestRequestMetricDataclass.test_equality_by_value |
60 | |
| class | TestHealthMonitorGetHealthBranches |
71 | Branch/exception tests for: providers.health_monitor.HealthMonitor.get_health |
| method | TestHealthMonitorGetHealthBranches.test_L63_when_not_metrics_or_len_metrics_0_true |
97 | Line 63: condition not metrics or len(metrics) == 0 is True. |
| method | TestHealthMonitorGetHealthBranches.test_L63_when_not_metrics_or_len_metrics_0_false |
105 | Line 63: condition not metrics or len(metrics) == 0 is False. |
| method | TestHealthMonitorGetHealthBranches.test_L81_when_error_rate_0_5_true |
113 | Line 81: condition error_rate > 0.5 is True. |
| method | TestHealthMonitorGetHealthBranches.test_L81_when_error_rate_0_5_false |
121 | Line 81: condition error_rate > 0.5 is False. |
| method | TestHealthMonitorGetHealthBranches.test_L83_when_error_rate_0_2_true |
129 | Line 83: condition error_rate > 0.2 is True. |
| method | TestHealthMonitorGetHealthBranches.test_L83_when_error_rate_0_2_false |
137 | Line 83: condition error_rate > 0.2 is False. |
| class | TestHealthMonitorRecordBranches |
146 | Branch/exception tests for: providers.health_monitor.HealthMonitor.record |
| method | TestHealthMonitorRecordBranches.test_L49_when_provider_name_not_in_self_metrics_true |
174 | Line 49: condition provider_name not in self._metrics is True. |
| method | TestHealthMonitorRecordBranches.test_L49_when_provider_name_not_in_self_metrics_false |
188 | Line 49: condition provider_name not in self._metrics is False. |