Reword the comments in the test suite
Each comment is one sentence or two short ones joined by "=>", without a final period.
This commit is contained in:
parent
0f69709226
commit
bca4250b4d
2 changed files with 39 additions and 59 deletions
|
|
@ -20,10 +20,8 @@ class AddressFactory(alchemy.SQLAlchemyModelFactory):
|
|||
id = factory.Sequence(lambda num: num)
|
||||
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
|
||||
# completeness sake, that is ok to do.
|
||||
# Non-primary addresses behave no differently in the tests
|
||||
# => Treat all addresses as primary ones
|
||||
primary_id = factory.LazyAttribute(lambda obj: obj.id)
|
||||
|
||||
# Mimic a Google Maps Place ID with just random characters
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
|
|||
id = factory.Sequence(lambda num: num)
|
||||
# customer -> set by the `make_order` fixture for better control
|
||||
|
||||
# Attributes regarding the specialization of an `Order`: ad-hoc or scheduled.
|
||||
# Ad-hoc `Order`s are placed between 11.45 and 14.15.
|
||||
# Attributes regarding the specialization of an `Order`: ad-hoc or scheduled
|
||||
# Ad-hoc `Order`s are placed between 11.45 and 14.15
|
||||
placed_at = factory.LazyFunction(
|
||||
lambda: (
|
||||
dt.datetime(*test_config.DATE, 11, 45)
|
||||
|
|
@ -88,8 +88,8 @@ class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
|
|||
lambda obj: obj.placed_at + dt.timedelta(minutes=45),
|
||||
)
|
||||
|
||||
# Attributes regarding the cancellation of an `Order`.
|
||||
# May be overwritten with the `cancel_before_pickup` or `cancel_after_pickup` flags.
|
||||
# Attributes regarding the cancellation of an `Order`
|
||||
# May be overwritten with the `cancel_before_pickup` or `cancel_after_pickup` flags
|
||||
cancelled = False
|
||||
cancelled_at = None
|
||||
cancelled_at_corrected = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue