mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[DataProcessor]Remove ENABLE_V1_DATA_PROCESSOR (#7052)
* remove ENABLE_V1_DATA_PROCESSOR * fix unit test * fix unit test
This commit is contained in:
@@ -63,10 +63,8 @@ class TestInputPreprocessorBranching(unittest.TestCase):
|
||||
mock_dp = MagicMock()
|
||||
with (
|
||||
patch.dict("sys.modules", {"fastdeploy.plugins": None, "fastdeploy.plugins.input_processor": None}),
|
||||
patch("fastdeploy.input.preprocess.envs") as mock_envs,
|
||||
patch("fastdeploy.input.text_processor.TextProcessor", return_value=mock_dp),
|
||||
):
|
||||
mock_envs.ENABLE_V1_DATA_PROCESSOR = False
|
||||
pp.create_processor()
|
||||
|
||||
self.assertIs(pp.processor, mock_dp)
|
||||
|
||||
Reference in New Issue
Block a user