Upgrade black

This commit is contained in:
Alexander Hess 2026-11-25 10:24:07 +01:00
commit dbdce83067
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
3 changed files with 1208 additions and 914 deletions

View file

@ -1,6 +1,5 @@
"""Factory to create `Courier` instances."""
import factory
from factory import alchemy

View file

@ -42,7 +42,8 @@ class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
# Timestamps after `cancelled_at` are discarded
# by the `post_generation` hook at the end of the `OrderFactory`.
cancel_ = factory.Trait( # noqa:WPS120 -> leading underscore does not work
cancelled=True, cancelled_at_corrected=False,
cancelled=True,
cancelled_at_corrected=False,
)
cancel_before_pickup = factory.Trait(
cancel_=True,

View file

@ -137,7 +137,10 @@ def make_replay_order(make_order, simulation):
order = make_order()
return factories.ReplayedOrderFactory.build(
simulation=simulation, actual=order, courier=order.courier, **kwargs,
simulation=simulation,
actual=order,
courier=order.courier,
**kwargs,
)
return func