File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,14 @@ def test_threaded_server_smoke(dash_thread_server):
26
26
sys .version_info < (3 ,), reason = "requires python3 for process testing"
27
27
)
28
28
def test_process_server_smoke (dash_process_server ):
29
+ cwd = os .getcwd ()
29
30
this_dir = os .path .dirname (__file__ )
30
31
assets_dir = os .path .abspath (os .path .join (this_dir , ".." , "assets" ))
31
- os .chdir (assets_dir )
32
- dash_process_server ("simple_app" )
33
- r = requests .get (dash_process_server .url )
34
- assert r .status_code == 200 , "the server is reachable"
35
- assert 'id="react-entry-point"' in r .text , "the entrypoint is present"
32
+ try :
33
+ os .chdir (assets_dir )
34
+ dash_process_server ("simple_app" )
35
+ r = requests .get (dash_process_server .url )
36
+ assert r .status_code == 200 , "the server is reachable"
37
+ assert 'id="react-entry-point"' in r .text , "the entrypoint is present"
38
+ finally :
39
+ os .chdir (cwd )
You can’t perform that action at this time.
0 commit comments