Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 24, 2023
1 parent 6f0ea2b commit 40b2c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ async def factory_cleanup():
yield 42

assert svcs.RegisteredService(object, factory, None).is_async
assert svcs.RegisteredService(
object, factory_cleanup, None
).is_async
assert svcs.RegisteredService(object, factory_cleanup, None).is_async

def test_is_async_nope(self):
"""
Expand Down
4 changes: 1 addition & 3 deletions tests/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def test_overwrite_factory(self, container):
"""
It's possible to overwrite an already registered type using a factory.
"""
svcs.flask.replace_value(
Interface, Interface(), ping=lambda _: None
)
svcs.flask.replace_value(Interface, Interface(), ping=lambda _: None)

assert isinstance(svcs.flask.get(Interface), Interface)

Expand Down

0 comments on commit 40b2c6c

Please sign in to comment.