Replace the legacy Session.query() API #17

Merged
alexander merged 11 commits from sqlalchemy-select into develop 2026-12-02 00:38:24 +01:00
Showing only changes of commit 9d98021b11 - Show all commits

Request the db_session fixture

The test queries the database but relied on the
global `db.session` that the previous test had left behind.
Alexander Hess 2026-12-02 00:19:03 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -141,6 +141,7 @@ class TestProperties:
assert result1 is result2
@pytest.mark.db
@pytest.mark.usefixtures("db_session")
def test_restaurants_with_db(self, pixel):
"""Test `Pixel.restaurants` property.