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

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)