| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from typing import Awaitable |
||
| 2 | |||
| 3 | from lagom.util.reflection import remove_awaitable_type |
||
| 4 | |||
| 5 | |||
| 6 | def test_awaitables_can_have_their_inner_type_revealed(): |
||
| 7 | assert remove_awaitable_type(Awaitable[int]) == int |
||
| 8 | |||
| 9 | |||
| 10 | def test_non_awaitables_dont_error_if_asked_about_awaitability(): |
||
| 11 | assert remove_awaitable_type(int) is None |
||
| 12 |