Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgorecki committed Jan 3, 2025
1 parent 31d1db3 commit 429cd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def on_create_transaction_context(**kwargs):
return TransactionContext(dependency_provider)

@application.on_enter_transaction_context
async def on_enter_transaction_context(ctx: TransactionContext):
def on_enter_transaction_context(ctx: TransactionContext):
ctx.set_dependencies(publish=ctx.publish)
logger.debug("Entering transaction")

@application.on_exit_transaction_context
async def on_exit_transaction_context(
def on_exit_transaction_context(
ctx: TransactionContext, exception: Optional[Exception] = None
):
session = ctx["db_session"]
Expand Down

0 comments on commit 429cd4b

Please sign in to comment.