File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,18 @@ repos:
7777 - id : commitizen
7878 stages : [commit-msg]
7979
80+ # Run tests with pytest
81+ - repo : local
82+ hooks :
83+ - id : pytest
84+ name : pytest
85+ entry : pytest
86+ language : system
87+ types : [python]
88+ pass_filenames : false
89+ always_run : true
90+ args : ["-v", "--tb=short"]
91+
8092 - repo : https://github.com/pre-commit/mirrors-prettier
8193 rev : v4.0.0-alpha.8
8294 hooks :
Original file line number Diff line number Diff line change 66def test_server_initialization () -> None :
77 """Test that the server can be initialized and tools are registered."""
88 # Check that the server instance exists
9- assert mcp .name == "MCP as a Judge"
9+ assert mcp .name == "MCP-as-a- Judge"
1010
1111 # Check that the server has the expected attributes
1212 assert hasattr (mcp , "name" )
@@ -18,12 +18,12 @@ def test_server_tools_registered() -> None:
1818 # when the server runs. We can't easily inspect them here, but we can
1919 # verify the server instance exists and has the expected structure.
2020 assert mcp is not None
21- assert mcp .name == "MCP as a Judge"
21+ assert mcp .name == "MCP-as-a- Judge"
2222
2323
2424def test_server_import () -> None :
2525 """Test that the server can be imported without errors."""
2626 from mcp_as_a_judge import mcp as imported_mcp
2727
2828 assert imported_mcp is not None
29- assert imported_mcp .name == "MCP as a Judge"
29+ assert imported_mcp .name == "MCP-as-a- Judge"
You can’t perform that action at this time.
0 commit comments