Skip to content

Commit

Permalink
Fix remaining (new) ruff lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Jun 19, 2024
1 parent dc4b698 commit 46b04b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/recipe/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ def test_merging_recipes():

# There is a 'C service'
assert any(
map(
lambda x: (isinstance(x, dict) and x.get("service") == "C service"),
C.recipe.values(),
)
isinstance(x, dict) and x.get("service") == "C service"
for x in C.recipe.values()
)
4 changes: 3 additions & 1 deletion tests/transport/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def test_callbacks_can_be_intercepted(mangling):
)

# Pass through (tests the value passed to the interceptor function is sensible)
intercept = lambda x: x
def intercept(x):
return x

ct.subscription_callback_set_intercept(intercept)

ct.subscription_callback(subid)(mock.sentinel.header, mock.sentinel.message)
Expand Down

0 comments on commit 46b04b0

Please sign in to comment.