Replace the legacy Session.query() API #17
1 changed files with 1 additions and 0 deletions
Request the db_session fixture
The test queries the database but relied on the global `db.session` that the previous test had left behind.
commit
9d98021b11
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue