Refactor access card printing and update test assertions

- Replaced deprecated console usage in `print_access_card` with a new console import for improved output handling.
- Updated test assertions in `test_pools.py` and `test_prompts.py` for better clarity and accuracy in expected results.
This commit is contained in:
Leonid Pershin
2026-08-21 06:34:45 +03:00
parent e7784473a2
commit f93ac5a66a
4 changed files with 35 additions and 3 deletions
+5 -1
View File
@@ -209,7 +209,11 @@ def print_access_card(
log("hold: gpu-rent hold | stop: gpu-rent stop")
log("")
return
Console(highlight=False, legacy_windows=False).print(panel)
from gpu_rent.term import console as default_console
default_console.print()
default_console.print(panel)
default_console.print()
def print_mcp_snippet(cfg: Config, log: Log) -> None: