[DataProcessor]Remove ENABLE_V1_DATA_PROCESSOR (#7052)

* remove ENABLE_V1_DATA_PROCESSOR

* fix unit test

* fix unit test
This commit is contained in:
luukunn
2026-04-01 09:53:41 +08:00
committed by GitHub
parent ee2b965f5f
commit 3651113ee5
59 changed files with 87 additions and 16857 deletions
-2
View File
@@ -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)