7
7
from azure_functions_worker .bindings import datumdef , meta
8
8
from tests .utils import testutils
9
9
10
- # Even if the tests are skipped for <=3.8, the library is still imported as
11
- # it is used for these tests.
12
- if sys .version_info .minor >= 9 :
13
- from azure .functions .extension .blob import BlobClient , BlobClientConverter
10
+ from azure .functions .extension .blob import BlobClient , BlobClientConverter
14
11
15
12
DEFERRED_BINDINGS_ENABLED_DIR = testutils .EXTENSION_TESTS_FOLDER / \
16
13
'deferred_bindings_tests' / \
@@ -50,6 +47,8 @@ async def test_deferred_bindings_metadata(self):
50
47
protos .StatusResult .Success )
51
48
52
49
50
+ @unittest .skipIf (sys .version_info .minor <= 8 , "The base extension"
51
+ "is only supported for 3.9+." )
53
52
class TestDeferredBindingsEnabledDual (testutils .AsyncTestCase ):
54
53
55
54
async def test_deferred_bindings_dual_metadata (self ):
@@ -62,6 +61,8 @@ async def test_deferred_bindings_dual_metadata(self):
62
61
protos .StatusResult .Success )
63
62
64
63
64
+ @unittest .skipIf (sys .version_info .minor <= 8 , "The base extension"
65
+ "is only supported for 3.9+." )
65
66
class TestDeferredBindingsDisabled (testutils .AsyncTestCase ):
66
67
67
68
async def test_non_deferred_bindings_metadata (self ):
@@ -75,6 +76,8 @@ async def test_non_deferred_bindings_metadata(self):
75
76
self .assertFalse (meta .deferred_bindings_enabled )
76
77
77
78
79
+ @unittest .skipIf (sys .version_info .minor <= 8 , "The base extension"
80
+ "is only supported for 3.9+." )
78
81
class TestDeferredBindingsHelpers (testutils .AsyncTestCase ):
79
82
80
83
async def test_get_deferred_binding (self ):
0 commit comments