From 28f1d5c7a50c267d6fc974a89ac725f8a81e4d89 Mon Sep 17 00:00:00 2001 From: narugo1992 Date: Tue, 20 Aug 2024 01:17:32 +0800 Subject: [PATCH] dev(narugo): add unittest for tree cli --- test/entry/test_tree.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/entry/test_tree.py b/test/entry/test_tree.py index 8d8b9f961c..82d576754f 100644 --- a/test/entry/test_tree.py +++ b/test/entry/test_tree.py @@ -1,3 +1,5 @@ +from pprint import pprint + import click import pytest from hbutils.testing import simulate_entry @@ -169,6 +171,8 @@ def test_tree_subdir_3(self): '-d', 'samples/colored' ]) assert result.exitcode == 0 + text = click.unstyle(result.stdout).strip() + pprint(text) lines = click.unstyle(result.stdout).strip().splitlines(keepends=False) assert lines == [ "datasets/deepghs/test_nested_dataset@main/samples/colored",