fix: add skip decorator to TestStartMetricsServer for CI without prometheus_client
This commit is contained in:
@@ -100,6 +100,7 @@ class TestTrackError(unittest.TestCase):
|
|||||||
self.assertEqual(wl_metrics.ERRORS.labels(type="rest_transcription")._value.get(), before + 1)
|
self.assertEqual(wl_metrics.ERRORS.labels(type="rest_transcription")._value.get(), before + 1)
|
||||||
|
|
||||||
|
|
||||||
|
@_skip_no_prometheus
|
||||||
class TestStartMetricsServer(unittest.TestCase):
|
class TestStartMetricsServer(unittest.TestCase):
|
||||||
@patch("whisper_live.metrics.start_http_server")
|
@patch("whisper_live.metrics.start_http_server")
|
||||||
def test_starts_on_given_port(self, mock_start):
|
def test_starts_on_given_port(self, mock_start):
|
||||||
|
|||||||
Reference in New Issue
Block a user