浏览代码

documentation for screen.open

Rodja Trappe 2 年之前
父节点
当前提交
9abd1c76a7
共有 1 个文件被更改,包括 4 次插入0 次删除
  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()