Skip to content

Commit

Permalink
Please pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Sep 20, 2024
1 parent b27545b commit 854b02a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1073,15 +1073,19 @@ def test_instruments_with_fastapi_installed(self, mock_version):
self.assertEqual(ep.name, "fastapi")

@patch("opentelemetry.instrumentation.dependencies.version")
def test_instruments_with_old_fastapi_installed(self, mock_version):
def test_instruments_with_old_fastapi_installed(
self, mock_version
): # pylint: disable=no-self-use
mock_version.side_effect = mock_version_with_old_fastapi
mock_distro = Mock()
_load_instrumentors(mock_distro)
mock_version.assert_called_once_with("fastapi")
mock_distro.load_instrumentor.assert_not_called()

@patch("opentelemetry.instrumentation.dependencies.version")
def test_instruments_without_fastapi_installed(self, mock_version):
def test_instruments_without_fastapi_installed(
self, mock_version
): # pylint: disable=no-self-use
mock_version.side_effect = mock_version_without_fastapi
mock_distro = Mock()
_load_instrumentors(mock_distro)
Expand Down

0 comments on commit 854b02a

Please sign in to comment.