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:
parent
bc2e3f439d
commit
9d98021b11
1 changed files with 1 additions and 0 deletions
|
|
@ -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