File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -232,30 +232,6 @@ def test_no_changes_needed(self):
232232 result = sync_back .update_sync_py (self .sync_py_path , action_versions )
233233 self .assertFalse (result )
234234
235- def test_missing_sync_py_file (self ):
236- """Test handling of missing sync.py file"""
237- result = sync_back .update_sync_py ("/nonexistent/sync.py" , {})
238- self .assertFalse (result )
239-
240- def test_main_dry_run (self ):
241- """Test that dry-run functionality works"""
242- # Create a test workflow
243- workflow_content = """
244- name: Test
245- jobs:
246- test:
247- steps:
248- - uses: actions/checkout@v4
249- """
250-
251- with open (os .path .join (self .workflow_dir , "__test.yml" ), 'w' ) as f :
252- f .write (workflow_content )
253-
254- # Test the scanning function directly since mocking main() is complex
255- result = sync_back .scan_generated_workflows (self .workflow_dir )
256- self .assertIn ('actions/checkout' , result )
257- self .assertEqual (result ['actions/checkout' ], 'v4' )
258-
259235
260236if __name__ == '__main__' :
261- unittest .main ()
237+ unittest .main ()
You can’t perform that action at this time.
0 commit comments