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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user