Skip to content

Commit ddc6a17

Browse files
committed
add test/commands/utils
1 parent 4b7dd7c commit ddc6a17

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎paths_cli/tests/commands/utils.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import traceback
2+
3+
def assert_click_success(result):
4+
if result.exit_code != 0:
5+
print(result.output)
6+
traceback.print_tb(result.exc_info[2])
7+
print(result.exc_info[0], result.exc_info[1])
8+
assert result.exit_code == 0

0 commit comments

Comments
 (0)