Break multi-line comments before conjunctions

This commit is contained in:
Alexander Hess 2026-12-03 10:13:13 +01:00
commit 2f1afd459f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
3 changed files with 27 additions and 27 deletions

View file

@ -21,8 +21,8 @@ class AddressFactory(alchemy.SQLAlchemyModelFactory):
created_at = factory.LazyFunction(utils.early_in_the_morning)
# When testing, all addresses are considered primary ones.
# As non-primary addresses have no different behavior and
# the property is only kept from the original dataset for
# As non-primary addresses have no different behavior
# and the property is only kept from the original dataset for
# completeness sake, that is ok to do.
primary_id = factory.LazyAttribute(lambda obj: obj.id)

View file

@ -384,8 +384,8 @@ class TestSyncWithGoogleMaps:
"legs": [
{
# We choose an artificially high distance of `9999`
# so that the synced bicycle distance is longer than
# the randomized air distance (i.e., fake data) for sure
# so that the synced bicycle distance is longer
# than the randomized air distance (i.e., fake data) for sure
"distance": {"text": "3.0 km", "value": 9999},
"duration": {"text": "10 mins", "value": 596},
"end_address": "13 Place Paul et Jean Paul Avisseau, ...",

View file

@ -100,8 +100,8 @@ class TestConstraints:
with pytest.raises(sa_exc.IntegrityError, match="fk_orders_to_restaurants"):
db_session.commit()
# Here should be a test to check deletion of a referenced pickup address, so
# `test_delete_a_referenced_pickup_address(self, db_session, order)`.
# Here should be a test to check deletion of a referenced pickup address,
# so `test_delete_a_referenced_pickup_address(self, db_session, order)`.
# The corresponding "fk_orders_to_addresses_on_pickup_address_id" constraint
# is very hard to test in isolation as the above "fk_orders_to_restaurants_..."
# constraint ensures its integrity already.
@ -1167,8 +1167,8 @@ def test_make_random_orders(
# Ad-hoc `Order`s are far more common than pre-orders
scheduled = random.choice([True, False, False, False, False])
# Randomly pass a `address` argument to `make_restaurant()` and
# a `restaurant` argument to `make_order()`
# Randomly pass a `address` argument to `make_restaurant()`
# and a `restaurant` argument to `make_order()`
if random.random() < 0.5:
address = random.choice([None, make_address()])
restaurant = make_restaurant(address=address)