File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 99
1010from src .mcpm .commands .share import (
1111 find_mcp_proxy ,
12- make_non_blocking ,
1312 monitor_for_errors ,
1413 share ,
1514 terminate_process ,
@@ -33,23 +32,6 @@ def test_find_mcp_proxy_not_found(self, monkeypatch):
3332
3433 assert find_mcp_proxy () is None
3534
36- @patch ("fcntl.fcntl" )
37- def test_make_non_blocking (self , mock_fcntl ):
38- """Test making a file object non-blocking"""
39- # Create a mock file object
40- mock_file = Mock ()
41- mock_file .fileno .return_value = 42
42-
43- # Set up mock fcntl return values
44- mock_fcntl .return_value = 0
45-
46- # Call the function
47- make_non_blocking (mock_file )
48-
49- # Verify that functions were called correctly
50- mock_file .fileno .assert_called_once ()
51- assert mock_fcntl .call_count == 2
52-
5335 def test_monitor_for_errors_with_known_error (self ):
5436 """Test error detection with a known error pattern"""
5537 error_line = "Error: RuntimeError: Received request before initialization was complete"
You can’t perform that action at this time.
0 commit comments