From e95dde5b76361bca53d3d22762001e4307af66a8 Mon Sep 17 00:00:00 2001 From: Kevin Zhuang Date: Tue, 12 Oct 2021 15:52:54 +1100 Subject: [PATCH] test: remove test for transform_async --- tests/test_utils.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index b191a1f..ddb5126 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,3 @@ -import inspect import os import unittest from unittest.mock import PropertyMock, patch @@ -6,13 +5,7 @@ from prompt_toolkit.application.application import Application from InquirerPy.exceptions import InvalidArgument -from InquirerPy.utils import ( - InquirerPyStyle, - calculate_height, - color_print, - get_style, - transform_async, -) +from InquirerPy.utils import InquirerPyStyle, calculate_height, color_print, get_style from .style import get_sample_style @@ -143,11 +136,3 @@ def test_color_print(self, mocked_running, mocked_term, mocked_print): color_print([("class:aa", "haha")], style={"aa": "#ffffff"}) mocked_term.assert_not_called() mocked_print.assert_called_once() - - def test_transform_async(self): - def hello(): - pass - - self.assertFalse(inspect.iscoroutinefunction(hello)) - - self.assertTrue(inspect.iscoroutinefunction(transform_async(hello)))