mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-11 22:25:30 +00:00
feat: linting
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from mcp_cordra.client import (
|
from mcp_cordra.client import (
|
||||||
CordraClient,
|
CordraClient,
|
||||||
CordraClientError,
|
CordraClientError,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import json
|
|||||||
from unittest.mock import AsyncMock, patch
|
from unittest.mock import AsyncMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from mcp_cordra.client import CordraClientError, CordraNotFoundError, DigitalObject
|
from mcp_cordra.client import CordraClientError, CordraNotFoundError, DigitalObject
|
||||||
from mcp_cordra.server import get_cordra_object
|
from mcp_cordra.server import get_cordra_object
|
||||||
|
|
||||||
@@ -199,7 +198,7 @@ class TestSchemaResourceFunctions:
|
|||||||
|
|
||||||
# Verify the client was called with correct query
|
# Verify the client was called with correct query
|
||||||
mock_client.find.assert_called_once_with("type:Schema")
|
mock_client.find.assert_called_once_with("type:Schema")
|
||||||
|
|
||||||
# Verify add_resource was called for each schema
|
# Verify add_resource was called for each schema
|
||||||
assert mock_mcp.add_resource.call_count == 3
|
assert mock_mcp.add_resource.call_count == 3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user