Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Jun 25, 2024
1 parent 7a9a84f commit f4b552b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def _run_patch_mechanism_tests(self):
etc.
"""
self._test_gevent_installed_flag()
self._reset_mocks()
self._test_botocore_installed_flag()
self._reset_mocks()

Expand Down Expand Up @@ -152,7 +153,7 @@ def _test_botocore_installed_flag(self):
mock_apply_patches.assert_called()

def _test_gevent_installed_flag(self):
with patch("gevent.monkey.patch_ssl") as mock_apply_patches:
with patch("amazon.opentelemetry.distro.patches._botocore_patches._apply_botocore_instrumentation_patches") as mock_apply_patches:
print("gevent installed flag start")
get_distribution_patch: patch = self.method_patches[GET_DISTRIBUTION_PATCH]
get_distribution_patch.side_effect = pkg_resources.DistributionNotFound
Expand Down

0 comments on commit f4b552b

Please sign in to comment.