File tree Expand file tree Collapse file tree 3 files changed +4
-17
lines changed
azure_functions_worker_v2
azure_functions_worker_v2 Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ async def functions_metadata_request(request):
142
142
logger .debug ("Successfully completed WorkerMetadataRequest." )
143
143
return protos .FunctionMetadataResponse (
144
144
use_default_metadata_indexing = False ,
145
- function__metadata_results = _metadata_result ,
145
+ function_metadata_results = _metadata_result ,
146
146
result = protos .StatusResult (
147
147
status = protos .StatusResult .Success ))
148
148
Original file line number Diff line number Diff line change @@ -33,13 +33,7 @@ Repository = "https://github.com/Azure/azure-functions-python-worker"
33
33
34
34
[project .optional-dependencies ]
35
35
dev = [
36
- " azure-eventhub" , # Used for EventHub E2E tests
37
- " azure-functions-durable" , # Used for Durable E2E tests
38
36
" azure-monitor-opentelemetry" , # Used for Azure Monitor unit tests
39
- " flask" ,
40
- " fastapi~=0.103.2" ,
41
- " pydantic" ,
42
- " pycryptodome==3.*" ,
43
37
" flake8==6.*" ,
44
38
" mypy" ,
45
39
" pytest" ,
@@ -54,13 +48,6 @@ dev = [
54
48
" pytest-instafail" ,
55
49
" pytest-rerunfailures" ,
56
50
" pytest-asyncio" ,
57
- " ptvsd" ,
58
- " python-dotenv" ,
59
- " plotly" ,
60
- " scikit-learn" ,
61
- " opencv-python" ,
62
- " pandas" ,
63
- " numpy" ,
64
51
" pre-commit" ,
65
52
" invoke"
66
53
]
Original file line number Diff line number Diff line change @@ -116,16 +116,16 @@ async def test_worker_init_request_with_exception(self):
116
116
117
117
async def test_functions_metadata_request (self ):
118
118
handle_event .protos = test_protos
119
- handle_event .metadata_exception = None
119
+ handle_event ._metadata_exception = None
120
120
metadata_result = await functions_metadata_request (None )
121
121
self .assertEqual (metadata_result .result .status , 1 )
122
122
123
123
async def test_functions_metadata_request_with_exception (self ):
124
124
handle_event .protos = test_protos
125
- handle_event .metadata_exception = Exception
125
+ handle_event ._metadata_exception = Exception
126
126
metadata_result = await functions_metadata_request (None )
127
127
self .assertEqual (metadata_result .result .status , 0 )
128
- handle_event .metadata_exception = None
128
+ handle_event ._metadata_exception = None
129
129
130
130
@patch ("azure_functions_worker_v2.loader.index_function_app" ,
131
131
return_value = True )
You can’t perform that action at this time.
0 commit comments