Use the sa alias for sqlalchemy everywhere

`sa` is the common alias, also in SQLAlchemy's own documentation
This commit is contained in:
Alexander Hess 2026-11-30 14:17:49 +01:00
commit e30b3efbe8
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -1,7 +1,7 @@
"""Test the ORM's `Grid` model."""
import pytest
import sqlalchemy as sqla
import sqlalchemy as sa
from sqlalchemy import exc as sa_exc
from velofy import db
@ -41,7 +41,7 @@ class TestConstraints:
db_session.commit()
# Must delete without ORM as otherwise an UPDATE statement is emitted.
stmt = sqla.delete(db.City).where(db.City.id == grid.city.id)
stmt = sa.delete(db.City).where(db.City.id == grid.city.id)
with pytest.raises(
sa_exc.IntegrityError,