@@ -133,6 +133,9 @@ func TestParityPythonCommandSurfaceFromSource(t *testing.T) {
133133}
134134
135135func TestParityPythonOptionsFromSource (t * testing.T ) {
136+ if os .Getenv ("APM_PYTHON_CONTRACT_INVENTORY" ) == "" {
137+ t .Skip ("set APM_PYTHON_CONTRACT_INVENTORY to run option-coverage checks (migration CI only)" )
138+ }
136139 inv := loadPythonBehaviorInventory (t , false )
137140 for _ , command := range inv .Commands {
138141 command := command
@@ -166,26 +169,14 @@ func TestParityPythonOptionsFromSource(t *testing.T) {
166169}
167170
168171func TestParityCompletionPythonBehaviorContracts (t * testing.T ) {
169- root := completionModuleRoot (t )
170- python := pythonInterpreterForContracts (t , true )
171-
172172 inventoryPath := os .Getenv ("APM_PYTHON_CONTRACT_INVENTORY" )
173173 if inventoryPath == "" {
174- inventoryPath = filepath .Join (t .TempDir (), "python-behavior-contracts.json" )
175- extract := exec .Command (
176- python ,
177- "scripts/ci/python_behavior_contracts.py" ,
178- "extract" ,
179- "--output" ,
180- inventoryPath ,
181- )
182- extract .Dir = root
183- extract .Env = append (os .Environ (), "NO_COLOR=1" , "COLUMNS=10000" )
184- if out , err := extract .CombinedOutput (); err != nil {
185- t .Fatalf ("extract Python behavior contracts failed: %v\n %s" , err , string (out ))
186- }
174+ t .Skip ("set APM_PYTHON_CONTRACT_INVENTORY to enforce the behavior-contracts coverage gate (migration CI only)" )
187175 }
188176
177+ root := completionModuleRoot (t )
178+ python := pythonInterpreterForContracts (t , true )
179+
189180 check := exec .Command (
190181 python ,
191182 "scripts/ci/python_behavior_contracts.py" ,
0 commit comments