Commit 22635b1
committed
Execute 'async def' test functions
pytest didn't use the result of test functions but `async def` functions
return an awaitable object.
Though `async def` functions were just passed like they don't have any
problem, their codes actually didn't run. For users, it was really hard to
detect the tests really were run or not.
This patch makes to check the result of test functions and if it is an
awaitable object then actually run the functions to ensure its code is
run.1 parent 64cb67b commit 22635b1
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments