File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import os
6- import shutil
76import socket
87import subprocess
98import time
@@ -61,30 +60,16 @@ def test_mcp_integration(mcp_mock_server):
6160 if not vendor_dir .exists ():
6261 pytest .skip ("stackone-ai-node submodule not found. Run 'git submodule update --init'" )
6362
64- # Check for bun runtime
65- bun_path = shutil .which ("bun" )
66- if not bun_path :
67- pytest .skip ("bun not found. Install via Nix flake." )
68-
63+ # find port
6964 port = _find_free_port ()
7065 base_url = f"http://localhost:{ port } "
7166
72- # Install dependencies if needed
73- node_modules = vendor_dir / "node_modules"
74- if not node_modules .exists ():
75- subprocess .run (
76- [bun_path , "install" ],
77- cwd = vendor_dir ,
78- check = True ,
79- capture_output = True ,
80- )
81-
8267 # Start the server from project root
8368 env = os .environ .copy ()
8469 env ["PORT" ] = str (port )
8570
8671 process = subprocess .Popen (
87- [bun_path , "run" , str (serve_script )],
72+ [str (serve_script )],
8873 cwd = project_root ,
8974 env = env ,
9075 stdout = subprocess .PIPE ,
You can’t perform that action at this time.
0 commit comments