Remove periods from one-sentence comments

This commit is contained in:
Alexander Hess 2026-12-03 10:03:26 +01:00
commit 049a5f6f62
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -28,7 +28,7 @@ pytest_plugins = [
# The TESTING environment variable is set
# in pyproject.toml in pytest's config section.
# in pyproject.toml in pytest's config section
if not os.getenv("TESTING"):
msg = "Tests must be executed with TESTING set in the environment"
raise RuntimeError(msg)
@ -72,7 +72,7 @@ def db_connection(request):
finally:
# Close the connection first: this rolls back any transaction a test
# may have left open, which would otherwise swallow the `DROP`s below.
# may have left open, which would otherwise swallow the `DROP`s below
connection.close()
with engine.begin() as cleanup:
@ -95,7 +95,7 @@ def db_connection(request):
def db_session(db_connection, monkeypatch):
"""A SQLAlchemy session that rolls back everything after a test case."""
# Begin the outermost transaction
# that is rolled back at the end of each test case.
# that is rolled back at the end of each test case
transaction = db_connection.begin()
# Create a session bound to the same connection as the `transaction`.
@ -104,7 +104,7 @@ def db_session(db_connection, monkeypatch):
session = orm.Session(bind=db_connection, join_transaction_mode="create_savepoint")
# Monkey patch the package's global `session` object,
# which is used heavily in the code base.
# which is used heavily in the code base
monkeypatch.setattr(db, "session", session)
try: