mirror of
https://github.com/MinaSaad1/pbi-cli
synced 2026-04-21 13:37:19 +00:00
fix: patch _ensure_ready in tests to prevent real downloads in CI
This commit is contained in:
parent
72f75f985c
commit
62b2305909
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue