From 9d98021b117f7a7bc9623b479b134ee0082761e0 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Wed, 2 Dec 2026 00:19:03 +0100 Subject: [PATCH] Request the `db_session` fixture The test queries the database but relied on the global `db.session` that the previous test had left behind. --- tests/db/test_pixels.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/db/test_pixels.py b/tests/db/test_pixels.py index 8da49e0..6284fa7 100644 --- a/tests/db/test_pixels.py +++ b/tests/db/test_pixels.py @@ -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.