Skip to content

Commit 60c7690

Browse files
committed
Disabling extensions for http
1 parent 7778c5f commit 60c7690

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/unittests/test_dispatcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ async def test_dispatcher_load_azfunc_in_init(self):
673673
async def test_dispatcher_load_modules_dedicated_app(self):
674674
"""Test modules are loaded in dedicated apps
675675
"""
676+
676677
os.environ["PYTHON_ISOLATE_WORKER_DEPENDENCIES"] = "1"
677678

678679
# Dedicated Apps where placeholder mode is not set

tests/unittests/test_http_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ def get_script_dir(cls):
1919

2020
@classmethod
2121
def setUpClass(cls):
22-
os.environ["ENABLE_EXTENSION"] = "0"
22+
os.environ["DISABLE_EXTENSIONS"] = "1"
2323
super().setUpClass()
2424

2525
@classmethod
2626
def tearDownClass(cls):
2727
# Remove the WEBSITE_HOSTNAME environment variable
28-
os.environ.pop('ENABLE_EXTENSION')
28+
os.environ.pop('DISABLE_EXTENSIONS')
2929
super().tearDownClass()
3030

3131
def test_return_str(self):

tests/utils/testutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,12 +1052,12 @@ def _setup_func_app(app_root):
10521052
with open(host_json, 'w') as f:
10531053
f.write(HOST_JSON_TEMPLATE)
10541054

1055-
if not os.environ.get("ENABLE_EXTENSION"):
1055+
if not os.environ.get("DISABLE_EXTENSIONS"):
10561056
if not os.path.isfile(extensions_csproj_file):
10571057
with open(extensions_csproj_file, 'w') as f:
10581058
f.write(EXTENSION_CSPROJ_TEMPLATE)
10591059

1060-
_symlink_dir(EXTENSIONS_PATH, extensions)
1060+
_symlink_dir(EXTENSIONS_PATH, extensions)
10611061

10621062

10631063
def _teardown_func_app(app_root):

0 commit comments

Comments
 (0)