From 3de1bad06074b3f4b5d5491da765d1a1f4c7a5ab Mon Sep 17 00:00:00 2001 From: kairos Date: Mon, 30 Dec 2024 09:13:47 +0000 Subject: [PATCH] Delete attached_assets directory --- .../Pasted--FAILURES--1735273019799.txt | 82 ----------------- ...ed--test-session-starts--1735272981290.txt | 90 ------------------- 2 files changed, 172 deletions(-) delete mode 100644 attached_assets/Pasted--FAILURES--1735273019799.txt delete mode 100644 attached_assets/Pasted--test-session-starts--1735272981290.txt diff --git a/attached_assets/Pasted--FAILURES--1735273019799.txt b/attached_assets/Pasted--FAILURES--1735273019799.txt deleted file mode 100644 index 7f5b2d9..0000000 --- a/attached_assets/Pasted--FAILURES--1735273019799.txt +++ /dev/null @@ -1,82 +0,0 @@ - -======================================================= FAILURES ======================================================== -_____________________________________________ test_rich_printer_empty_tree ______________________________________________ - -empty_tree = , console = - - def test_rich_printer_empty_tree(empty_tree, console): - """Test printing an empty tree.""" - printer = RichTreePrinter() - - with console.capture() as capture: - printer.print_tree(empty_tree) - - output = capture.get() -> assert "Empty tree" in output -E AssertionError: assert 'Empty tree' in '' - -tests/test_rich_printer.py:42: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -Empty tree -_____________________________________________ test_rich_printer_basic_tree ______________________________________________ - -basic_tree = , console = - - def test_rich_printer_basic_tree(basic_tree, console): - """Test printing a basic tree structure.""" - printer = RichTreePrinter() - - with console.capture() as capture: - printer.print_tree(basic_tree) - - output = capture.get() -> assert "[0-100]" in output -E AssertionError: assert '[0-100]' in '' - -tests/test_rich_printer.py:53: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -[0-100] size=100 info=Root -└── [10-50] size=40 info=Child -____________________________________________ test_rich_printer_custom_styles ____________________________________________ - -basic_tree = , console = - - def test_rich_printer_custom_styles(basic_tree, console): - """Test printing with custom styles.""" - config = RichPrintConfig(root_style=Style(color="red", bold=True), - node_style=Style(color="blue"), - leaf_style=Style(color="green")) - printer = RichTreePrinter(config) - - with console.capture() as capture: - printer.print_tree(basic_tree) - - output = capture.get() -> assert output.strip() != "" # Verify some output is generated -E AssertionError: assert '' != '' -E + where '' = () -E + where = ''.strip - -tests/test_rich_printer.py:81: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -[0-100] size=100 info=Root -└── [10-50] size=40 info=Child -________________________________________________ test_position_creation _________________________________________________ - - def test_position_creation(): - pos = Position(0, 100, "Test") - assert pos.start == 0 - assert pos.end == 100 - assert pos.info == "Test" -> assert pos.lineno is None -E assert 1 is None -E + where 1 = .lineno - -tests/test_tree_core.py:13: AssertionError -================================================ short test summary info ================================================ -FAILED tests/test_rich_printer.py::test_rich_printer_empty_tree - AssertionError: assert 'Empty tree' in '' -FAILED tests/test_rich_printer.py::test_rich_printer_basic_tree - AssertionError: assert '[0-100]' in '' -FAILED tests/test_rich_printer.py::test_rich_printer_custom_styles - AssertionError: assert '' != '' -FAILED tests/test_tree_core.py::test_position_creation - assert 1 is None -============================================= 4 failed, 13 passed in 0.19s ============================================== -~/Tree$ \ No newline at end of file diff --git a/attached_assets/Pasted--test-session-starts--1735272981290.txt b/attached_assets/Pasted--test-session-starts--1735272981290.txt deleted file mode 100644 index 309f908..0000000 --- a/attached_assets/Pasted--test-session-starts--1735272981290.txt +++ /dev/null @@ -1,90 +0,0 @@ -================================================== test session starts ================================================== -platform linux -- Python 3.11.10, pytest-8.3.4, pluggy-1.5.0 -rootdir: /home/runner/Tree -configfile: pyproject.toml -collected 17 items - -tests/test_rich_printer.py FF.F [ 23%] -tests/test_tree_core.py F............ [100%] - -======================================================= FAILURES ======================================================== -_____________________________________________ test_rich_printer_empty_tree ______________________________________________ - -empty_tree = , console = - - def test_rich_printer_empty_tree(empty_tree, console): - """Test printing an empty tree.""" - printer = RichTreePrinter() - - with console.capture() as capture: - printer.print_tree(empty_tree) - - output = capture.get() -> assert "Empty tree" in output -E AssertionError: assert 'Empty tree' in '' - -tests/test_rich_printer.py:42: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -Empty tree -_____________________________________________ test_rich_printer_basic_tree ______________________________________________ - -basic_tree = , console = - - def test_rich_printer_basic_tree(basic_tree, console): - """Test printing a basic tree structure.""" - printer = RichTreePrinter() - - with console.capture() as capture: - printer.print_tree(basic_tree) - - output = capture.get() -> assert "[0-100]" in output -E AssertionError: assert '[0-100]' in '' - -tests/test_rich_printer.py:53: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -[0-100] size=100 info=Root -└── [10-50] size=40 info=Child -____________________________________________ test_rich_printer_custom_styles ____________________________________________ - -basic_tree = , console = - - def test_rich_printer_custom_styles(basic_tree, console): - """Test printing with custom styles.""" - config = RichPrintConfig(root_style=Style(color="red", bold=True), - node_style=Style(color="blue"), - leaf_style=Style(color="green")) - printer = RichTreePrinter(config) - - with console.capture() as capture: - printer.print_tree(basic_tree) - - output = capture.get() -> assert output.strip() != "" # Verify some output is generated -E AssertionError: assert '' != '' -E + where '' = () -E + where = ''.strip - -tests/test_rich_printer.py:81: AssertionError -------------------------------------------------- Captured stdout call -------------------------------------------------- -[0-100] size=100 info=Root -└── [10-50] size=40 info=Child -________________________________________________ test_position_creation _________________________________________________ - - def test_position_creation(): - pos = Position(0, 100, "Test") - assert pos.start == 0 - assert pos.end == 100 - assert pos.info == "Test" -> assert pos.lineno is None -E assert 1 is None -E + where 1 = .lineno - -tests/test_tree_core.py:13: AssertionError -================================================ short test summary info ================================================ -FAILED tests/test_rich_printer.py::test_rich_printer_empty_tree - AssertionError: assert 'Empty tree' in '' -FAILED tests/test_rich_printer.py::test_rich_printer_basic_tree - AssertionError: assert '[0-100]' in '' -FAILED tests/test_rich_printer.py::test_rich_printer_custom_styles - AssertionError: assert '' != '' -FAILED tests/test_tree_core.py::test_position_creation - assert 1 is None -============================================= 4 failed, 13 passed in 0.19s ============================================== -~/Tree$ \ No newline at end of file