Tests: check existing username case-insensitive #343
Annotations
3 errors
|
Run tests:
tests/test_views.py#L191
test_profile_name_exists
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "uq_accounts_user_username"
DETAIL: Key (username)=(existingname) already exists.
[SQL: UPDATE accounts_user SET updated=%(updated)s, username=%(username)s, displayname=%(displayname)s, version_id=%(version_id)s, profile=%(profile)s WHERE accounts_user.id = %(accounts_user_id)s AND accounts_user.version_id = %(accounts_user_version_id)s]
[parameters: {'updated': datetime.datetime(2024, 3, 18, 12, 10, 44, 828346), 'username': 'existingname', 'displayname': 'eXISTINGnAME', 'version_id': 3, 'profile': '{"full_name": "Another name", "affiliations": ""}', 'accounts_user_id': 2, 'accounts_user_version_id': 2}]
(Background on this error at: https://sqlalche.me/e/14/gkpj)
|
Run tests
Process completed with exit code 1.
|
Loading