Remove periods from one-sentence comments
This commit is contained in:
parent
454c2898a0
commit
049a5f6f62
1 changed files with 308 additions and 308 deletions
|
|
@ -65,7 +65,7 @@ class TestConstraints:
|
|||
db_session.add(assoc)
|
||||
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 == assoc.address.id)
|
||||
|
||||
with pytest.raises(
|
||||
|
|
@ -81,7 +81,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.AddressPixelAssociation).values(
|
||||
address_id=address.id,
|
||||
city_id=999,
|
||||
|
|
@ -102,7 +102,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.AddressPixelAssociation).values(
|
||||
address_id=address.id,
|
||||
city_id=address.city.id,
|
||||
|
|
@ -121,7 +121,7 @@ class TestConstraints:
|
|||
db_session.add(assoc)
|
||||
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.Pixel).where(db.Pixel.id == assoc.pixel.id)
|
||||
|
||||
with pytest.raises(
|
||||
|
|
@ -135,7 +135,7 @@ class TestConstraints:
|
|||
db_session.add(assoc)
|
||||
db_session.commit()
|
||||
|
||||
# Create a neighboring `Pixel` and put the same `address` as in `pixel` in it.
|
||||
# Create a neighboring `Pixel` and put the same `address` as in `pixel` in it
|
||||
neighbor = db.Pixel(grid=pixel.grid, n_x=pixel.n_x, n_y=pixel.n_y + 1)
|
||||
another_assoc = db.AddressPixelAssociation(address=address, pixel=neighbor)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue