【Hackathon 9th No.84】Supplementary Unit Test for fastdeploy/reasoning by Echo-Nie · Pull Request #3570 · PaddlePaddle/FastDeploy (original) (raw)
Unit Tests for the fastdeploy/reasoning Module
Module Tested: fastdeploy/reasoning
Test File: test/reasoning/test_reasoning_parser.py
Test Content: Registration and retrieval functionality of the base class ReasoningParser
Test Case Coverage:
- Normal registration and retrieval of the parser class.
KeyErrorthrown when attempting to register the same parser name without theforceflag.TypeErrorthrown when attempting to register a class that is not a subclass ofReasoningParser.KeyErrorthrown when attempting to retrieve an unregistered parser.
Result:
/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/utils/cpp_extension/extension_utils.py:717: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils. Support for replacing an already imported distutils is deprecated. In the future, this condition will fail. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
....
----------------------------------------------------------------------
Ran 4 tests in 0.001s
OK