File tree Expand file tree Collapse file tree
packages/data-designer/tests/cli/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44from __future__ import annotations
55
6- from io import StringIO
76from pathlib import Path
87from unittest .mock import MagicMock , call , patch
98
109import pytest
1110import typer
12- from rich .console import Console
1311from rich .table import Table
1412from rich .text import Text
1513
@@ -170,16 +168,6 @@ def test_run_list_renders_package_first_catalog_table(
170168 == "https://raw.githubusercontent.com/acme/dd-plugins/main/catalog/plugins.json"
171169 )
172170
173- rendered_output = StringIO ()
174- narrow_console = Console (
175- file = rendered_output ,
176- force_terminal = True ,
177- color_system = "standard" ,
178- width = 60 ,
179- legacy_windows = False ,
180- )
181- narrow_console .print (printed_tables [0 ])
182- assert "https://docs.example.test/plugins/data-designer-text-transform/" in rendered_output .getvalue ()
183171 controller .catalog_service .group_entries_by_package .assert_called_once_with (package_entries )
184172
185173
You can’t perform that action at this time.
0 commit comments