Request the db_session fixture

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

View file

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