Explorar o código

documentation for screen.open

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
9abd1c76a7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/screen.py

+ 4 - 0
tests/screen.py

@@ -48,6 +48,10 @@ class Screen:
         self.server_thread.join()
 
     def open(self, path: str) -> None:
+        '''Try to open the page until the server is ready or we time out.
+
+        If the server is not jet running, start it.
+        '''
         if self.server_thread is None:
             self.start_server()
         start = time.time()