Browse Source

more debug logging

Nick Sweeting 1 month ago
parent
commit
bcf0513d05
1 changed files with 3 additions and 1 deletions
  1. 3 1
      archivebox/plugins/ublock/tests/test_ublock.py

+ 3 - 1
archivebox/plugins/ublock/tests/test_ublock.py

@@ -284,9 +284,10 @@ def test_extension_loads_in_chromium():
         cache_file = ext_dir / 'ublock.extension.json'
         assert cache_file.exists(), "Extension cache not created"
         ext_data = json.loads(cache_file.read_text())
-        print(f"Extension installed: {ext_data.get('name')} v{ext_data.get('version')}")
+        print(f"[test] Extension installed: {ext_data.get('name')} v{ext_data.get('version')}", flush=True)
 
         # Step 2: Launch Chromium using the chrome hook (loads extensions automatically)
+        print("[test] Launching Chromium...", flush=True)
         data_dir = Path(env['DATA_DIR'])
         crawl_dir = data_dir / 'crawl'
         crawl_dir.mkdir()
@@ -300,6 +301,7 @@ def test_extension_loads_in_chromium():
             text=True,
             env=env
         )
+        print("[test] Chrome hook started, waiting for CDP...", flush=True)
 
         # Wait for Chromium to launch and CDP URL to be available
         cdp_url = None