|
21 | 21 | from tests.utils import testutils
|
22 | 22 | from tests.utils.testutils import UNIT_TESTS_ROOT
|
23 | 23 |
|
24 |
| - |
25 | 24 | SysVersionInfo = col.namedtuple("VersionInfo", ["major", "minor", "micro",
|
26 | 25 | "releaselevel", "serial"])
|
27 | 26 | DISPATCHER_FUNCTIONS_DIR = testutils.UNIT_TESTS_FOLDER / 'dispatcher_functions'
|
@@ -915,34 +914,6 @@ def test_functions_metadata_request_with_indexing_exception(
|
915 | 914 | metadata_response.function_metadata_response.result.status,
|
916 | 915 | protos.StatusResult.Failure)
|
917 | 916 |
|
918 |
| - @patch.dict(os.environ, {PYTHON_ENABLE_INIT_INDEXING: 'false'}) |
919 |
| - def test_functions_metadata_request_with_filenotfound_exception(self): |
920 |
| - |
921 |
| - request = protos.StreamingMessage( |
922 |
| - worker_init_request=protos.WorkerInitRequest( |
923 |
| - host_version="2.3.4", |
924 |
| - function_app_directory=str(FUNCTION_APP_DIRECTORY) |
925 |
| - ) |
926 |
| - ) |
927 |
| - |
928 |
| - metadata_request = protos.StreamingMessage( |
929 |
| - functions_metadata_request=protos.FunctionsMetadataRequest( |
930 |
| - function_app_directory="NonExistentDirectory" |
931 |
| - ) |
932 |
| - ) |
933 |
| - |
934 |
| - self.loop.run_until_complete( |
935 |
| - self.dispatcher._handle__worker_init_request(request)) |
936 |
| - |
937 |
| - metadata_response = self.loop.run_until_complete( |
938 |
| - self.dispatcher._handle__functions_metadata_request( |
939 |
| - metadata_request)) |
940 |
| - |
941 |
| - self.assertEqual( |
942 |
| - metadata_response.function_metadata_response.result.exception.message, |
943 |
| - "FileNotFoundError: function_app.py not " |
944 |
| - "found in NonExistentDirectory\\function_app.py") |
945 |
| - |
946 | 917 | @patch.dict(os.environ, {PYTHON_ENABLE_INIT_INDEXING: 'false'})
|
947 | 918 | def test_dispatcher_indexing_in_load_request(self):
|
948 | 919 | init_request = protos.StreamingMessage(
|
|
0 commit comments