@@ -30,7 +30,7 @@ class TestLoad(TestCase):
30
30
"os.environ" , {OTEL_PYTHON_CONFIGURATOR : "custom_configurator2" }
31
31
)
32
32
@patch (
33
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
33
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
34
34
)
35
35
def test_load_configurators (self , iter_mock ):
36
36
# Add multiple entry points but only specify the 2nd in the environment variable.
@@ -59,7 +59,7 @@ def test_load_configurators(self, iter_mock):
59
59
"os.environ" , {OTEL_PYTHON_CONFIGURATOR : "custom_configurator2" }
60
60
)
61
61
@patch (
62
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
62
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
63
63
)
64
64
def test_load_configurators_no_ep (
65
65
self ,
@@ -73,7 +73,7 @@ def test_load_configurators_no_ep(
73
73
"os.environ" , {OTEL_PYTHON_CONFIGURATOR : "custom_configurator2" }
74
74
)
75
75
@patch (
76
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
76
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
77
77
)
78
78
def test_load_configurators_error (self , iter_mock ):
79
79
# Add multiple entry points but only specify the 2nd in the environment variable.
@@ -100,7 +100,7 @@ def test_load_configurators_error(self, iter_mock):
100
100
"opentelemetry.instrumentation.auto_instrumentation._load.isinstance"
101
101
)
102
102
@patch (
103
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
103
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
104
104
)
105
105
def test_load_distro (self , iter_mock , isinstance_mock ):
106
106
# Add multiple entry points but only specify the 2nd in the environment variable.
@@ -133,7 +133,7 @@ def test_load_distro(self, iter_mock, isinstance_mock):
133
133
"opentelemetry.instrumentation.auto_instrumentation._load.DefaultDistro"
134
134
)
135
135
@patch (
136
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
136
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
137
137
)
138
138
def test_load_distro_not_distro (
139
139
self , iter_mock , default_distro_mock , isinstance_mock
@@ -165,7 +165,7 @@ def test_load_distro_not_distro(
165
165
"opentelemetry.instrumentation.auto_instrumentation._load.DefaultDistro"
166
166
)
167
167
@patch (
168
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
168
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
169
169
)
170
170
def test_load_distro_no_ep (self , iter_mock , default_distro_mock ):
171
171
iter_mock .return_value = ()
@@ -180,7 +180,7 @@ def test_load_distro_no_ep(self, iter_mock, default_distro_mock):
180
180
"opentelemetry.instrumentation.auto_instrumentation._load.isinstance"
181
181
)
182
182
@patch (
183
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
183
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
184
184
)
185
185
def test_load_distro_error (self , iter_mock , isinstance_mock ):
186
186
ep_mock1 = Mock ()
@@ -210,7 +210,7 @@ def test_load_distro_error(self, iter_mock, isinstance_mock):
210
210
"opentelemetry.instrumentation.auto_instrumentation._load.get_dist_dependency_conflicts"
211
211
)
212
212
@patch (
213
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
213
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
214
214
)
215
215
def test_load_instrumentors (self , iter_mock , dep_mock ):
216
216
# Mock opentelemetry_pre_instrument entry points
@@ -283,7 +283,7 @@ def test_load_instrumentors(self, iter_mock, dep_mock):
283
283
"opentelemetry.instrumentation.auto_instrumentation._load.get_dist_dependency_conflicts"
284
284
)
285
285
@patch (
286
- "opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points "
286
+ "opentelemetry.instrumentation.auto_instrumentation._load.entry_points "
287
287
)
288
288
def test_load_instrumentors_dep_conflict (self , iter_mock , dep_mock ):
289
289
ep_mock1 = Mock ()
0 commit comments