Remove the config of flake8-expression-complexity
This commit is contained in:
parent
b24eb80f70
commit
137b3b1e03
2 changed files with 13 additions and 13 deletions
|
|
@ -26,7 +26,7 @@ class TestAggregateOrders:
|
|||
Note: This fixture also exists in `tests.db.test_grids`.
|
||||
"""
|
||||
mock = mocker.Mock()
|
||||
query = ( # noqa:ECE001
|
||||
query = (
|
||||
mock.query.return_value.join.return_value.filter.return_value.all # noqa:E501
|
||||
)
|
||||
monkeypatch.setattr(db, 'session', mock)
|
||||
|
|
|
|||
|
|
@ -105,17 +105,17 @@ class TestChooseTacticalModel:
|
|||
data.loc[:, 'n_orders'] = 1
|
||||
|
||||
# ... and we set three additional time steps per day to `0`.
|
||||
data.loc[ # noqa:ECE001
|
||||
data.loc[
|
||||
# all `Pixel`s, all `Order`s in time steps starting at 11 am
|
||||
(slice(None), slice(data.index.levels[1][0], None, 12)),
|
||||
'n_orders',
|
||||
] = 0
|
||||
data.loc[ # noqa:ECE001
|
||||
data.loc[
|
||||
# all `Pixel`s, all `Order`s in time steps starting at 12 am
|
||||
(slice(None), slice(data.index.levels[1][1], None, 12)),
|
||||
'n_orders',
|
||||
] = 0
|
||||
data.loc[ # noqa:ECE001
|
||||
data.loc[
|
||||
# all `Pixel`s, all `Order`s in time steps starting at 1 pm
|
||||
(slice(None), slice(data.index.levels[1][2], None, 12)),
|
||||
'n_orders',
|
||||
|
|
|
|||
Loading…
Reference in a new issue