Enable RUF in ruff
This commit is contained in:
parent
ae2dc8db64
commit
c56fe649b7
1 changed files with 26 additions and 17 deletions
|
|
@ -121,9 +121,7 @@ class TestProperties:
|
|||
def _restaurants_mock(self, mocker, monkeypatch, restaurant):
|
||||
"""A `Mock` whose `.return_value` is `[restaurant]`."""
|
||||
mock = mocker.Mock()
|
||||
query = (
|
||||
mock.query.return_value.join.return_value.filter.return_value.all # noqa:E501
|
||||
)
|
||||
query = mock.query.return_value.join.return_value.filter.return_value.all
|
||||
query.return_value = [restaurant]
|
||||
monkeypatch.setattr(db, "session", mock)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue