File tree Expand file tree Collapse file tree 4 files changed +30
-4
lines changed
runners/claude-code-runner/tests Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,10 @@ func TestGroupVersionResource(t *testing.T) {
168168// Mock test for schema validation
169169func TestSchemaGroupVersionResource (t * testing.T ) {
170170 gvr := GetProjectSettingsResource ()
171-
171+
172172 // Verify the type
173173 var _ schema.GroupVersionResource = gvr
174-
174+
175175 // Verify the individual components instead of string format
176176 if gvr .Group != "vteam.ambient-code" {
177177 t .Errorf ("Expected group 'vteam.ambient-code', got '%s'" , gvr .Group )
@@ -183,4 +183,3 @@ func TestSchemaGroupVersionResource(t *testing.T) {
183183 t .Errorf ("Expected resource 'projectsettings', got '%s'" , gvr .Resource )
184184 }
185185}
186-
Original file line number Diff line number Diff line change 1+ legacy-peer-deps = true
2+
Original file line number Diff line number Diff line change @@ -185,4 +185,3 @@ func BenchmarkGetProjectSettingsResource(b *testing.B) {
185185 GetProjectSettingsResource ()
186186 }
187187}
188-
Original file line number Diff line number Diff line change 1+ """
2+ Pytest configuration for Claude Code Runner tests.
3+
4+ These tests require the container environment with runner_shell dependency.
5+ Mark all tests to skip if running outside container.
6+ """
7+ import sys
8+ import pytest
9+
10+ # Check if we're in the container environment
11+ try :
12+ # The container adds /app/runner-shell to the path
13+ sys .path .insert (0 , '/app/runner-shell' )
14+ import runner_shell # noqa: F401
15+ IN_CONTAINER = True
16+ except (ImportError , ModuleNotFoundError ):
17+ IN_CONTAINER = False
18+
19+ # Skip all tests if not in container environment
20+ if not IN_CONTAINER :
21+ collect_ignore_glob = ["test_*.py" ]
22+
23+ @pytest .fixture (scope = "session" , autouse = True )
24+ def skip_all_tests ():
25+ pytest .skip ("Tests require container environment with runner_shell dependency" , allow_module_level = True )
26+
You can’t perform that action at this time.
0 commit comments