diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e47666d75..48afb2833e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ on: push: branches: - - main + - '**' pull_request: @@ -17,4 +17,4 @@ jobs: - run: pip install . - run: pip install -U pytest trio - - run: pytest + - run: pytest -vv \ No newline at end of file diff --git a/tests/test_types.py b/tests/test_types.py index decd1c81d0..5fb93b769d 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -8,9 +8,15 @@ def test_jsonrpc_request(): "method": "initialize", "params": { "protocolVersion": 1, - "capabilities": {"batch": None, "sampling": None}, - "clientInfo": {"name": "mcp_python", "version": "0.1.0"}, - }, + "capabilities": { + "batch": None, + "sampling": None + }, + "clientInfo": { + "name": "mcp_python", + "version": "0.1.0" + } + } } request = JSONRPCMessage.model_validate(json_data) @@ -21,4 +27,4 @@ def test_jsonrpc_request(): assert request.root.id == 1 assert request.root.method == "initialize" assert request.root.params is not None - assert request.root.params["protocolVersion"] == 1 + assert request.root.params["protocolVersion"] == 1 \ No newline at end of file