Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/unit/utils/test_connection_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Connectable:
def __init__(self, raise_exception_from_foo: bool):
"""Initialize class used to test connection decorator."""
self._raise_exception_from_foo = raise_exception_from_foo
self._connected = None
self._connected = False

def connected(self) -> bool:
"""Predicate if connection is alive."""
Expand All @@ -36,7 +36,7 @@ def some_action(self) -> None:
raise SomeActionException("some_action error!")


def test_connection_decorator():
def test_connection_decorator() -> None:
"""Test the connection decorator."""
c = Connectable(raise_exception_from_foo=False)
c.disconnect()
Expand All @@ -47,7 +47,7 @@ def test_connection_decorator():
assert c.connected() is True


def test_connection_decorator_on_connection_exception():
def test_connection_decorator_on_connection_exception() -> None:
"""Test the connection decorator."""
c = Connectable(raise_exception_from_foo=True)
c.disconnect()
Expand Down
Loading