We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c32e19 commit ac2ab0bCopy full SHA for ac2ab0b
1 file changed
protocol_test.py
@@ -17,6 +17,7 @@
17
from absl.testing import absltest
18
import integration_test_utils
19
import httpx
20
+from pydantic import ValidationError
21
from ucp_sdk.models.schemas.ucp import BusinessSchema, ReverseDomainName
22
from ucp_sdk.models.schemas.shopping import checkout as checkout
23
from ucp_sdk.models.schemas.shopping.payment import (
@@ -190,7 +191,7 @@ def test_discovery(self):
190
191
# model, which enforces the pattern defined in the UCP spec.
192
try:
193
ReverseDomainName(root=str(handler_name))
- except Exception as e:
194
+ except ValidationError as e:
195
self.fail(
196
f"Payment handler group name '{handler_name}' "
197
f"does not follow reverse-DNS convention: {e}"
0 commit comments