File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,20 @@ def test_server_plugins(self, server_config):
179179 assert isinstance (server_plugins , dict )
180180 assert "native" in server_plugins .keys ()
181181
182+ def test_server_debug (self , server_config , tmp_path ):
183+ from pathlib import Path
184+
185+ server_instance = start_local_server (config = server_config )
186+ server_instance .start_debug (tmp_path / Path ("DEBUG_TEST_" ))
187+ f = dpf .core .field_from_array ([1.0 ], server = server_instance )
188+ fwd = dpf .core .operators .utility .forward (any = f , server = server_instance )
189+ fwd .run ()
190+ server_instance .stop_debug ()
191+ debug_folder = sorted (tmp_path .glob ("DEBUG_TEST_*" ))
192+ assert len (debug_folder ) == 1
193+ init_path = debug_folder [0 ] / Path ("init.log" )
194+ assert init_path .exists ()
195+
182196
183197@pytest .mark .skipif (
184198 os .name == "posix" or running_docker ,
You can’t perform that action at this time.
0 commit comments