File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
from os import environ
3
3
from os .path import exists
4
4
from pathlib import Path
5
+ from typing import Union
5
6
6
7
MAX_TRIES = int (environ .get ("TC_MAX_TRIES" , 120 ))
7
8
SLEEP_TIME = int (environ .get ("TC_POOLING_INTERVAL" , 1 ))
@@ -47,7 +48,7 @@ class TestcontainersConfiguration:
47
48
ryuk_reconnection_timeout : str = RYUK_RECONNECTION_TIMEOUT
48
49
tc_properties : dict [str , str ] = field (default_factory = read_tc_properties )
49
50
50
- def tc_properties_get_tc_host (self ):
51
+ def tc_properties_get_tc_host (self ) -> Union [ str , None ] :
51
52
return self .tc_properties .get ("tc.host" )
52
53
53
54
@property
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ def get_logs(self) -> tuple[bytes, bytes]:
172
172
raise ContainerStartException ("Container should be started before getting logs" )
173
173
return self ._container .logs (stderr = False ), self ._container .logs (stdout = False )
174
174
175
- def exec (self , command ) -> tuple [int , str ]:
175
+ def exec (self , command ) -> tuple [int , bytes ]:
176
176
if not self ._container :
177
177
raise ContainerStartException ("Container should be started before executing a command" )
178
178
return self ._container .exec_run (command )
You can’t perform that action at this time.
0 commit comments