Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxalbert committed Jun 20, 2024
1 parent 7bd6151 commit 7b92dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/brokers/nats/test_test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ async def test_inbox_prefix_with_real(
assert br._connection._inbox_prefix == b"test"
assert "test" in str(br._connection.new_inbox())


async def test_respect_middleware(self, queue):
routes = []

Expand Down
2 changes: 2 additions & 0 deletions tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ def spy_decorator(method):
mock = MagicMock()

if inspect.iscoroutinefunction(method):

async def wrapper(*args, **kwargs):
mock(*args, **kwargs)
return await method(*args, **kwargs)
else:

def wrapper(*args, **kwargs):
mock(*args, **kwargs)
return method(*args, **kwargs)
Expand Down

0 comments on commit 7b92dd1

Please sign in to comment.