You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We expect a DeprecationWarning with a specific message
1556
-
withpytest.warns(
1557
-
DeprecationWarning,
1558
-
match="Setting field 'supportsAuthenticatedExtendedCard'",
1559
+
# --- Test that using camelCase aliases raises errors ---
1560
+
1561
+
# Test setting an attribute via camelCase alias raises AttributeError
1562
+
withpytest.raises(
1563
+
AttributeError,
1564
+
match="Setting field 'supportsAuthenticatedExtendedCard' via its camelCase alias is not allowed. Use the snake_case name 'supports_authenticated_extended_card' instead.",
0 commit comments