From fb0b50fcd3bc6f25281a8eecf74d926ac63a1fe2 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 27 Mar 2026 08:58:40 -0700 Subject: [PATCH] Fix test counters in test_app.py --- tools/ora_editor/test_app.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/tools/ora_editor/test_app.py b/tools/ora_editor/test_app.py index b79b53a..eef0109 100644 --- a/tools/ora_editor/test_app.py +++ b/tools/ora_editor/test_app.py @@ -136,6 +136,7 @@ def test_with_real_ora(): if __name__ == '__main__': tests = [ + test_index, test_api_open_missing_path, test_api_save_missing_ora, test_api_layer_operations, @@ -145,25 +146,11 @@ if __name__ == '__main__': test_with_real_ora, ] - passed = 0 - failed = 0 - - # Skip test_index since there's no template yet - print("Skipping test_index (no template yet)") - - for test in tests[1:]: # Skip test_index + for test in tests: try: - if test(): - passed += 1 - else: - failed += 1 + test() except Exception as e: print(f"✗ {test.__name__} failed with exception: {e}") import traceback traceback.print_exc() - failed += 1 - - print(f"\n{passed}/{len(tests)-1} tests passed") - - if failed > 0: - sys.exit(1) + sys.exit(1)