File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments