We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d79cb0 commit 7ad1a1dCopy full SHA for 7ad1a1d
services/invitations/tests/unit/test_invitations.py
@@ -5,6 +5,7 @@
5
6
import binascii
7
from datetime import datetime, timezone
8
+from typing import Counter
9
from urllib import parse
10
11
import cryptography.fernet
@@ -192,3 +193,7 @@ class OtherModel(BaseModel):
192
193
secret_key=secret,
194
default_product=default_product,
195
)
196
+
197
198
+def test_aliases_uniqueness():
199
+ assert not [item for item, count in Counter([field.alias for field in _ContentWithShortNames.model_fields.values()]).items() if count > 1] #nosec
0 commit comments