From e9d7b2dd99b5817e200b76f144dd73a448e2dd22 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 22 Sep 2025 16:48:35 +0200 Subject: [PATCH] Remove unnecessary test cases --- pr-checks/test_sync_back.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/pr-checks/test_sync_back.py b/pr-checks/test_sync_back.py index 780167088..de2e42d73 100644 --- a/pr-checks/test_sync_back.py +++ b/pr-checks/test_sync_back.py @@ -232,30 +232,6 @@ steps = [ result = sync_back.update_sync_py(self.sync_py_path, action_versions) self.assertFalse(result) - def test_missing_sync_py_file(self): - """Test handling of missing sync.py file""" - result = sync_back.update_sync_py("/nonexistent/sync.py", {}) - self.assertFalse(result) - - def test_main_dry_run(self): - """Test that dry-run functionality works""" - # Create a test workflow - workflow_content = """ -name: Test -jobs: - test: - steps: - - uses: actions/checkout@v4 - """ - - with open(os.path.join(self.workflow_dir, "__test.yml"), 'w') as f: - f.write(workflow_content) - - # Test the scanning function directly since mocking main() is complex - result = sync_back.scan_generated_workflows(self.workflow_dir) - self.assertIn('actions/checkout', result) - self.assertEqual(result['actions/checkout'], 'v4') - if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()