Skip to content

Conversation

@jelly
Copy link
Member

@jelly jelly commented Jan 18, 2025

This has been sitting on my desktop for a while, totally forgetting the context but I assume our current tests issues are with SQLAlchemy 2.

@shibumi
Copy link
Member

shibumi commented Mar 3, 2025

@jelly

=========================== short test summary info ============================
FAILED test/test_admin.py::test_delete_last_admin_fails - sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user.name
[SQL: INSERT INTO user (name, email, salt, password, token, role, active, idp_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('cyberwehr12345678', '[email protected]', 'TxS`6_*7r6JE1;Gry+e!', '1@!!eWax}JP4o5jwcEh-8-C)VT&rHcaOZ0|51TL|DJ)2Bz))o6<(s^=LKO>YZx@&M9?1J}7rC-FT_dL@', None, 'administrator', 1, None)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
FAILED test/test_admin.py::test_edit_requires_admin - sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: user.name
[SQL: INSERT INTO user (name, email, salt, password, token, role, active, idp_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('cyberwehr87654321', '[email protected]', '>6{R+y^_;4ZGYTG6U8rR', '8K<cGa^d)R$6<L}+d!%FVn8+g!YS-EvxGm=;mpmP@&V|Pekt}OUF4DPf?@31d@@lin|I}tI4K}#n0awN', None, 'reporter', 1, None)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
ERROR test/test_admin.py::test_delete_user - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: 
DROP TABLE advisory]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
ERROR test/test_admin.py::test_deactive_user - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: 
DROP TABLE advisory]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
ERROR test/test_login.py::test_logout - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: 
DROP TABLE advisory]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
=========== 2 failed, 214 passed, 1300 warnings, 3 errors in 44.25s ============
make: *** [Makefile:52: test-py] Error 1

You might want to take another look ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants