@@ -40,7 +40,7 @@ def __init__(self,
40
40
arango_root_password : str = "passwd" ,
41
41
arango_no_auth : typing .Optional [bool ] = None ,
42
42
arango_random_root_password : typing .Optional [bool ] = None ,
43
- ** kwargs ):
43
+ ** kwargs ) -> None :
44
44
"""
45
45
Args:
46
46
image: Actual docker image/tag to pull.
@@ -69,23 +69,16 @@ def __init__(self,
69
69
else arango_random_root_password
70
70
))
71
71
72
- def _configure (self ):
72
+ def _configure (self ) -> None :
73
73
self .with_env ("ARANGO_ROOT_PASSWORD" , self .arango_root_password )
74
74
if self .arango_no_auth :
75
75
self .with_env ("ARANGO_NO_AUTH" , "1" )
76
76
if self .arango_random_root_password :
77
77
self .with_env ("ARANGO_RANDOM_ROOT_PASSWORD" , "1" )
78
78
79
- def get_connection_url (self ):
80
- # for now, single host over HTTP
81
- scheme = "http"
79
+ def get_connection_url (self ) -> str :
82
80
port = self .get_exposed_port (self .port_to_expose )
83
- url = f" { scheme } ://{ self .get_container_host_ip ()} :{ port } "
81
+ return f"http ://{ self .get_container_host_ip ()} :{ port } "
84
82
85
- return url
86
-
87
- def _connect (self ):
88
- wait_for_logs (
89
- self ,
90
- predicate = "is ready for business" ,
91
- timeout = MAX_TRIES )
83
+ def _connect (self ) -> None :
84
+ wait_for_logs (self , predicate = "is ready for business" , timeout = MAX_TRIES )
0 commit comments