Skip to content

Commit e9d7b2d

Browse files
committed
Remove unnecessary test cases
1 parent d9ad6a3 commit e9d7b2d

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

pr-checks/test_sync_back.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff 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

260236
if __name__ == '__main__':
261-
unittest.main()
237+
unittest.main()

0 commit comments

Comments
 (0)