fix: patch _ensure_ready in tests to prevent real downloads in CI

This commit is contained in:
MinaSaad1 2026-03-26 16:31:34 +02:00
parent 72f75f985c
commit 62b2305909

View file

@ -125,6 +125,9 @@ def patch_get_client(
# Also patch dax.py which calls get_client directly
monkeypatch.setattr("pbi_cli.commands.dax.get_client", factory)
# Skip auto-setup (binary download + skills install) in tests
monkeypatch.setattr("pbi_cli.commands.connection._ensure_ready", lambda: None)
return mock_client