Remove all "WPS" codes

This commit is contained in:
Alexander Hess 2026-11-28 02:01:12 +01:00
commit 9fcb3c8c14
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -84,7 +84,7 @@ class TestGridification:
"""
mock = mocker.Mock()
query = ( # noqa:ECE001
mock.query.return_value.join.return_value.filter.return_value.all # noqa:E501,WPS219
mock.query.return_value.join.return_value.filter.return_value.all # noqa:E501
)
monkeypatch.setattr(db, 'session', mock)
@ -105,7 +105,7 @@ class TestGridification:
result = db.Grid.gridify(city=city, side_length=side_length)
assert isinstance(result, db.Grid)
assert len(result.pixels) == 0 # noqa:WPS507
assert len(result.pixels) == 0
def test_one_pixel_with_one_address(self, city, order, addresses_mock):
"""At the very least, there must be one `Pixel` ...
@ -155,7 +155,7 @@ class TestGridification:
result = db.Grid.gridify(city=city, side_length=side_length)
assert isinstance(result, db.Grid)
assert len(result.pixels) == 0 # noqa:WPS507
assert len(result.pixels) == 0
@pytest.mark.no_cover
def test_no_pixel_with_one_address_too_far_west(self, city, order, addresses_mock):
@ -174,7 +174,7 @@ class TestGridification:
result = db.Grid.gridify(city=city, side_length=side_length)
assert isinstance(result, db.Grid)
assert len(result.pixels) == 0 # noqa:WPS507
assert len(result.pixels) == 0
@pytest.mark.no_cover
def test_two_pixels_with_two_addresses(self, city, make_address, addresses_mock):
@ -206,7 +206,7 @@ class TestGridification:
@pytest.mark.db
@pytest.mark.no_cover
@pytest.mark.parametrize('side_length', [250, 500, 1_000, 2_000, 4_000, 8_000])
def test_make_random_grids( # noqa:WPS211,WPS218
def test_make_random_grids(
self,
db_session,
city,