Spaces:
Paused
Paused
Download tests/test_process_manager.py from minhho/facefusion-nexttech: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/minhho/facefusion-nexttech/resolve/main/tests/test_process_manager.py
- Command line
-
hf download hf://spaces/minhho/facefusion-nexttech/tests/test_process_manager.py
-
curl -L -o test_process_manager.py https://huggingface.co/spaces/minhho/facefusion-nexttech/resolve/main/tests/test_process_manager.py
386 Bytes
| from facefusion.process_manager import end, is_pending, is_processing, is_stopping, set_process_state, start, stop | |
| def test_start() -> None: | |
| set_process_state('pending') | |
| start() | |
| assert is_processing() | |
| def test_stop() -> None: | |
| set_process_state('processing') | |
| stop() | |
| assert is_stopping() | |
| def test_end() -> None: | |
| set_process_state('processing') | |
| end() | |
| assert is_pending() | |