From 85bc8c314cc4defaaa6900cfcf82e1e15ad9f6ae Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Mon, 6 Apr 2020 09:47:56 +0200 Subject: [PATCH] fix: handle dry_run like data request Signed-off-by: Han Xiao --- tests/test_driver_yaml.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_driver_yaml.py b/tests/test_driver_yaml.py index 05b97cc223112..d6d366c7c5e85 100644 --- a/tests/test_driver_yaml.py +++ b/tests/test_driver_yaml.py @@ -64,6 +64,9 @@ def test_load_yaml2(self): def test_resource_executor(self): a = BaseExecutor.load_config(resource_filename('jina', '/'.join(('resources', 'executors._route.yml')))) + self.assertEqual(a.name, 'route') + self.assertEqual(len(a._drivers), 4) + a = BaseExecutor.load_config(resource_filename('jina', '/'.join(('resources', 'executors._forward.yml')))) self.assertEqual(a.name, 'forward') self.assertEqual(len(a._drivers), 4) a = BaseExecutor.load_config(resource_filename('jina', '/'.join(('resources', 'executors._merge.yml'))))