Break multi-line comments before conjunctions
This commit is contained in:
parent
049a5f6f62
commit
2f1afd459f
1 changed files with 27 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue