Skip to content

Commit 16594da

Browse files
committed
LCORE-832: fixed type issues in unit test
1 parent 87f933f commit 16594da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/utils/test_connection_decorator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Connectable:
1515
def __init__(self, raise_exception_from_foo: bool):
1616
"""Initialize class used to test connection decorator."""
1717
self._raise_exception_from_foo = raise_exception_from_foo
18-
self._connected = None
18+
self._connected = False
1919

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

3838

39-
def test_connection_decorator():
39+
def test_connection_decorator() -> None:
4040
"""Test the connection decorator."""
4141
c = Connectable(raise_exception_from_foo=False)
4242
c.disconnect()
@@ -47,7 +47,7 @@ def test_connection_decorator():
4747
assert c.connected() is True
4848

4949

50-
def test_connection_decorator_on_connection_exception():
50+
def test_connection_decorator_on_connection_exception() -> None:
5151
"""Test the connection decorator."""
5252
c = Connectable(raise_exception_from_foo=True)
5353
c.disconnect()

0 commit comments

Comments
 (0)