Skip to content

Commit

Permalink
Test if dependencies get called with args
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Feb 26, 2024
1 parent 99d263e commit a091b9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unfurlbot/dependencies/consumercontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ def __init__(self) -> None:

async def __call__(
self,
*args: Any,
**kwargs: Any,
) -> ConsumerContext:
"""Create a per-request context and return it."""
logger = get_logger(__name__) # eventually use a logger dependency
logger.info("Creating consumer context", args=args, kwargs=kwargs)
return ConsumerContext(
logger=logger,
factory=Factory(
Expand Down

0 comments on commit a091b9d

Please sign in to comment.