Skip to content

Commit 5a4062d

Browse files
committed
fixing a test
1 parent 21282ba commit 5a4062d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/groundlight/edge/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GlobalConfig(BaseModel): # pylint: disable=too-few-public-methods
1818
)
1919
confident_audit_rate: float = Field(
2020
default=1e-5, # A detector running at 1 FPS = ~100,000 IQ/day, so 1e-5 is ~1 confident IQ/day audited
21-
gt=0,
21+
ge=0,
2222
description="The probability that any given confident prediction will be sent to the cloud for auditing.",
2323
)
2424

test/unit/test_edge_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
from unittest.mock import Mock, patch
33

44
import pytest
5+
from pydantic import ValidationError
6+
57
from groundlight import ExperimentalApi
68
from groundlight.edge import (
79
DEFAULT,
@@ -308,7 +310,7 @@ def test_inference_config_validation_errors():
308310
with pytest.raises(ValueError, match="disable_cloud_escalation"):
309311
InferenceConfig(name="bad", disable_cloud_escalation=True)
310312

311-
with pytest.raises(ValueError, match="cannot be less than 0.0"):
313+
with pytest.raises(ValidationError, match="greater_than"):
312314
InferenceConfig(
313315
name="bad_escalation_interval",
314316
always_return_edge_prediction=True,

0 commit comments

Comments
 (0)