Skip to content

Commit

Permalink
test: remove test for transform_async
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhala committed Oct 12, 2021
1 parent b7df510 commit e95dde5
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import inspect
import os
import unittest
from unittest.mock import PropertyMock, patch

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

Expand Down Expand Up @@ -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)))

0 comments on commit e95dde5

Please sign in to comment.