@@ -136,7 +136,7 @@ def test_get_cx_deps_path_in_script_root_with_sys_path_linux_py36(self):
136
136
os .environ ['AzureWebJobsScriptRoot' ] = '/home/site/wwwroot'
137
137
result = DependencyManager ._get_cx_deps_path ()
138
138
self .assertEqual (result , '/home/site/wwwroot/.python_packages/sites/'
139
- 'lib/python3.6/site-packages/' )
139
+ 'lib/python3.6/site-packages/' )
140
140
141
141
def test_get_cx_deps_path_in_script_root_with_sys_path_linux (self ):
142
142
# Test for Python 3.7+ Azure Environment
@@ -145,7 +145,7 @@ def test_get_cx_deps_path_in_script_root_with_sys_path_linux(self):
145
145
os .environ ['AzureWebJobsScriptRoot' ] = '/home/site/wwwroot'
146
146
result = DependencyManager ._get_cx_deps_path ()
147
147
self .assertEqual (result , '/home/site/wwwroot/.python_packages/sites/'
148
- 'lib/site-packages/' )
148
+ 'lib/site-packages/' )
149
149
150
150
def test_get_cx_deps_path_in_script_root_with_sys_path_windows (self ):
151
151
# Test for Windows Core Tools Environment
@@ -523,9 +523,6 @@ def test_clear_path_importer_cache_and_modules_retain_namespace(self):
523
523
os .path .join (self ._worker_deps_path , 'common_module' )
524
524
)
525
525
526
- @unittest .skip (
527
- 'This feature is not ready due to azure. namespace not found bugs.'
528
- )
529
526
def test_use_worker_dependencies (self ):
530
527
# Setup app settings
531
528
os .environ ['PYTHON_ISOLATE_WORKER_DEPENDENCIES' ] = 'true'
@@ -558,11 +555,11 @@ def test_use_worker_dependencies_disable(self):
558
555
import common_module # NoQA
559
556
560
557
@unittest .skipUnless (
561
- sys .version_info .major == 3 and sys .version_info .minor in (6 , 7 , 8 ),
562
- 'Test only available for Python 3.6, 3.7, or 3.8 '
558
+ sys .version_info .major == 3 and sys .version_info .minor in (6 , 7 , 8 , 9 ),
559
+ 'Test only available for Python 3.6, 3.7, 3.8 or 3.9 '
563
560
)
564
- def test_use_worker_dependencies_default_python_36_37_38 (self ):
565
- # Feature should be disabled in Python 3.6, 3.7, and 3.8
561
+ def test_use_worker_dependencies_default_python_36_37_38_39 (self ):
562
+ # Feature should be disabled in Python 3.6, 3.7, 3.8 and 3.9
566
563
# Setup paths
567
564
DependencyManager .worker_deps_path = self ._worker_deps_path
568
565
DependencyManager .cx_deps_path = self ._customer_deps_path
@@ -573,11 +570,12 @@ def test_use_worker_dependencies_default_python_36_37_38(self):
573
570
with self .assertRaises (ImportError ):
574
571
import common_module # NoQA
575
572
576
- @unittest .skip (
577
- 'This feature is not ready due to azure. namespace not found bugs.'
573
+ @unittest .skipUnless (
574
+ sys .version_info .major == 3 and sys .version_info .minor == 10 ,
575
+ 'Test only available for python 3.10'
578
576
)
579
- def test_use_worker_dependencies_default_python_39 (self ):
580
- # Feature should be enabled in Python 3.9 by default
577
+ def test_use_worker_dependencies_default_python_310 (self ):
578
+ # Feature should be enabled in Python 3.10 by default
581
579
# Setup paths
582
580
DependencyManager .worker_deps_path = self ._worker_deps_path
583
581
DependencyManager .cx_deps_path = self ._customer_deps_path
@@ -630,11 +628,11 @@ def test_prioritize_customer_dependencies_disable(self):
630
628
import common_module # NoQA
631
629
632
630
@unittest .skipIf (
633
- sys .version_info .major == 3 and sys .version_info .minor in ( 6 , 7 , 8 ) ,
634
- 'Test only available for Python 3.6, 3.7, or 3.8 '
631
+ sys .version_info .major == 3 and sys .version_info .minor == 10 ,
632
+ 'Test not available for python 3.10 '
635
633
)
636
- def test_prioritize_customer_dependencies_default_python_36_37_38 (self ):
637
- # Feature should be disabled in Python 3.6, 3.7, and 3.8
634
+ def test_prioritize_customer_dependencies_default_python_36_37_38_39 (self ):
635
+ # Feature should be disabled in Python 3.6, 3.7, 3.8 and 3.9
638
636
# Setup paths
639
637
DependencyManager .worker_deps_path = self ._worker_deps_path
640
638
DependencyManager .cx_deps_path = self ._customer_deps_path
@@ -645,11 +643,12 @@ def test_prioritize_customer_dependencies_default_python_36_37_38(self):
645
643
with self .assertRaises (ImportError ):
646
644
import common_module # NoQA
647
645
648
- @unittest .skip (
649
- 'This feature is not ready due to azure. namespace not found bugs.'
646
+ @unittest .skipUnless (
647
+ sys .version_info .major == 3 and sys .version_info .minor == 10 ,
648
+ 'Test only available for python 3.10'
650
649
)
651
- def test_prioritize_customer_dependencies_default_python_39 (self ):
652
- # Feature should be enabled in Python 3.9 by default
650
+ def test_prioritize_customer_dependencies_default_python_310 (self ):
651
+ # Feature should be enabled in Python 3.10 by default
653
652
# Setup paths
654
653
DependencyManager .worker_deps_path = self ._worker_deps_path
655
654
DependencyManager .cx_deps_path = self ._customer_deps_path
0 commit comments