Skip to content

Commit 419e2dd

Browse files
[MegaLinter] Apply linters fixes
1 parent bb1c6b5 commit 419e2dd

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

newrelic/hooks/adapter_mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from newrelic.common.object_wrapper import wrap_function_wrapper
1615
from newrelic.api.function_trace import FunctionTrace
1716
from newrelic.common.object_names import callable_name
17+
from newrelic.common.object_wrapper import wrap_function_wrapper
1818
from newrelic.common.signature import bind_args
1919

2020

tests/adapter_mcp/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from testing_support.fixtures import collector_agent_registration_fixture, collector_available_fixture
1615
from testing_support.fixture.event_loop import event_loop as loop
17-
16+
from testing_support.fixtures import collector_agent_registration_fixture, collector_available_fixture
1817

1918
_default_settings = {
2019
"package_reporting.enabled": False, # Turn off package reporting for testing as it causes slowdowns.

tests/adapter_mcp/test_tools.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
# limitations under the License.
1414

1515
import pytest
16+
from fastmcp.client import Client
17+
from fastmcp.client.transports import FastMCPTransport
18+
from fastmcp.server.server import FastMCP
1619
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
1720

1821
from newrelic.api.background_task import background_task
1922

20-
from fastmcp.client import Client
21-
from fastmcp.server.server import FastMCP
22-
from fastmcp.client.transports import FastMCPTransport
23-
2423

2524
@pytest.fixture
2625
def fastmcp_server():

0 commit comments

Comments
 (0)