Skip to content

Commit 2b48df6

Browse files
committed
tests
1 parent 4353f26 commit 2b48df6

File tree

1 file changed

+9
-9
lines changed
  • opentelemetry-instrumentation/tests/auto_instrumentation

1 file changed

+9
-9
lines changed

Diff for: opentelemetry-instrumentation/tests/auto_instrumentation/test_load.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TestLoad(TestCase):
3030
"os.environ", {OTEL_PYTHON_CONFIGURATOR: "custom_configurator2"}
3131
)
3232
@patch(
33-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
33+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
3434
)
3535
def test_load_configurators(self, iter_mock):
3636
# Add multiple entry points but only specify the 2nd in the environment variable.
@@ -59,7 +59,7 @@ def test_load_configurators(self, iter_mock):
5959
"os.environ", {OTEL_PYTHON_CONFIGURATOR: "custom_configurator2"}
6060
)
6161
@patch(
62-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
62+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
6363
)
6464
def test_load_configurators_no_ep(
6565
self,
@@ -73,7 +73,7 @@ def test_load_configurators_no_ep(
7373
"os.environ", {OTEL_PYTHON_CONFIGURATOR: "custom_configurator2"}
7474
)
7575
@patch(
76-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
76+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
7777
)
7878
def test_load_configurators_error(self, iter_mock):
7979
# 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):
100100
"opentelemetry.instrumentation.auto_instrumentation._load.isinstance"
101101
)
102102
@patch(
103-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
103+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
104104
)
105105
def test_load_distro(self, iter_mock, isinstance_mock):
106106
# 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):
133133
"opentelemetry.instrumentation.auto_instrumentation._load.DefaultDistro"
134134
)
135135
@patch(
136-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
136+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
137137
)
138138
def test_load_distro_not_distro(
139139
self, iter_mock, default_distro_mock, isinstance_mock
@@ -165,7 +165,7 @@ def test_load_distro_not_distro(
165165
"opentelemetry.instrumentation.auto_instrumentation._load.DefaultDistro"
166166
)
167167
@patch(
168-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
168+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
169169
)
170170
def test_load_distro_no_ep(self, iter_mock, default_distro_mock):
171171
iter_mock.return_value = ()
@@ -180,7 +180,7 @@ def test_load_distro_no_ep(self, iter_mock, default_distro_mock):
180180
"opentelemetry.instrumentation.auto_instrumentation._load.isinstance"
181181
)
182182
@patch(
183-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
183+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
184184
)
185185
def test_load_distro_error(self, iter_mock, isinstance_mock):
186186
ep_mock1 = Mock()
@@ -210,7 +210,7 @@ def test_load_distro_error(self, iter_mock, isinstance_mock):
210210
"opentelemetry.instrumentation.auto_instrumentation._load.get_dist_dependency_conflicts"
211211
)
212212
@patch(
213-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
213+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
214214
)
215215
def test_load_instrumentors(self, iter_mock, dep_mock):
216216
# Mock opentelemetry_pre_instrument entry points
@@ -283,7 +283,7 @@ def test_load_instrumentors(self, iter_mock, dep_mock):
283283
"opentelemetry.instrumentation.auto_instrumentation._load.get_dist_dependency_conflicts"
284284
)
285285
@patch(
286-
"opentelemetry.instrumentation.auto_instrumentation._load.iter_entry_points"
286+
"opentelemetry.instrumentation.auto_instrumentation._load.entry_points"
287287
)
288288
def test_load_instrumentors_dep_conflict(self, iter_mock, dep_mock):
289289
ep_mock1 = Mock()

0 commit comments

Comments
 (0)