Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkpersonal committed Nov 28, 2024
1 parent b172cab commit bf82f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/python/tests/sdk/test_custom_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_parse_wrapped_aliases() -> None:
"wrapped_aliases": True,
},
}
with pytest.raises(pydantic.ValidationError, match="Wrapped aliases are only supported in Pydantic V1, please update your `version` field to be 'v1' to continue using wrapped aliases."):
with pytest.raises(pydantic.ValidationError, match="Wrapped aliases are only supported in Pydantic V1 or V1_ON_V2, please update your `version` field appropriately to continue using wrapped aliases."):
SDKCustomConfig.parse_obj(v2)

both = {
Expand All @@ -53,5 +53,5 @@ def test_parse_wrapped_aliases() -> None:
"wrapped_aliases": True,
},
}
with pytest.raises(pydantic.ValidationError, match="Wrapped aliases are only supported in Pydantic V1, please update your `version` field to be 'v1' to continue using wrapped aliases."):
with pytest.raises(pydantic.ValidationError, match="Wrapped aliases are only supported in Pydantic V1 or V1_ON_V2, please update your `version` field appropriately to continue using wrapped aliases."):
SDKCustomConfig.parse_obj(both)

0 comments on commit bf82f8d

Please sign in to comment.