Remove periods from one-sentence comments
This commit is contained in:
parent
454c2898a0
commit
049a5f6f62
1 changed files with 308 additions and 308 deletions
|
|
@ -25,7 +25,7 @@ def path(address, another_address, make_address):
|
|||
).meters
|
||||
|
||||
# We put 5 latitude-longitude pairs as the "path" from
|
||||
# `.first_address` to `.second_address`.
|
||||
# `.first_address` to `.second_address`
|
||||
directions = [
|
||||
[float(add.latitude), float(add.longitude)]
|
||||
for add in (make_address() for _ in range(5))
|
||||
|
|
@ -68,7 +68,7 @@ class TestConstraints:
|
|||
db_session.add(path)
|
||||
db_session.commit()
|
||||
|
||||
# Must delete without ORM as otherwise an UPDATE statement is emitted.
|
||||
# Must delete without ORM as otherwise an UPDATE statement is emitted
|
||||
stmt = sa.delete(db.Address).where(db.Address.id == path.first_address.id)
|
||||
|
||||
with pytest.raises(
|
||||
|
|
@ -82,7 +82,7 @@ class TestConstraints:
|
|||
db_session.add(path)
|
||||
db_session.commit()
|
||||
|
||||
# Must delete without ORM as otherwise an UPDATE statement is emitted.
|
||||
# Must delete without ORM as otherwise an UPDATE statement is emitted
|
||||
stmt = sa.delete(db.Address).where(db.Address.id == path.second_address.id)
|
||||
|
||||
with pytest.raises(
|
||||
|
|
@ -98,7 +98,7 @@ class TestConstraints:
|
|||
db_session.commit()
|
||||
|
||||
# Must insert without ORM as otherwise SQLAlchemy figures out
|
||||
# that something is wrong before any query is sent to the database.
|
||||
# that something is wrong before any query is sent to the database
|
||||
stmt = sa.insert(db.Path).values(
|
||||
first_address_id=address.id,
|
||||
second_address_id=another_address.id,
|
||||
|
|
@ -118,7 +118,7 @@ class TestConstraints:
|
|||
db_session.commit()
|
||||
|
||||
# Must insert without ORM as otherwise SQLAlchemy figures out
|
||||
# that something is wrong before any query is sent to the database.
|
||||
# that something is wrong before any query is sent to the database
|
||||
stmt = sa.insert(db.Path).values(
|
||||
first_address_id=path.first_address.id,
|
||||
second_address_id=path.second_address.id,
|
||||
|
|
@ -311,7 +311,7 @@ class TestFromAddresses:
|
|||
|
||||
assert result == 6
|
||||
|
||||
# Tests for the `Path.from_order()` convenience method.
|
||||
# Tests for the `Path.from_order()` convenience method
|
||||
|
||||
def test_make_path_instance_from_order(
|
||||
self,
|
||||
|
|
@ -385,7 +385,7 @@ class TestSyncWithGoogleMaps:
|
|||
{
|
||||
# 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.
|
||||
# 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, ...",
|
||||
|
|
@ -685,7 +685,7 @@ class TestProperties:
|
|||
result = path.waypoints
|
||||
|
||||
# There are 5 inner points, excluding start and end,
|
||||
# i.e., the `.first_address` and `second_address`.
|
||||
# i.e., the `.first_address` and `second_address`
|
||||
assert len(result) == 5
|
||||
|
||||
def test_waypoints_is_cached(self, path):
|
||||
|
|
|
|||
Loading…
Reference in a new issue