Skip to content
Snippets Groups Projects

Solved: 2 tests for gradio app launch failed on windows + investigation of pytest warnings

4 files
+ 15
14
Compare changes
  • Side-by-side
  • Inline

Files

@@ -9,14 +9,15 @@ def test_starting_class():
@@ -9,14 +9,15 @@ def test_starting_class():
assert app.title == "Annotation tool"
assert app.title == "Annotation tool"
 
def start_server(ip, port):
 
app = qim3d.gui.annotation_tool.Interface()
 
app.launch(server_name=ip, server_port=port)
 
 
def test_app_launch():
def test_app_launch():
ip = "0.0.0.0"
ip = "localhost"
port = 65432
port = 65432
def start_server(ip, port):
app = qim3d.gui.annotation_tool.Interface()
app.launch(server_name=ip, server_port=port)
proc = multiprocessing.Process(target=start_server, args=(ip, port))
proc = multiprocessing.Process(target=start_server, args=(ip, port))
proc.start()
proc.start()
Loading