Returns a function that just returns the number specified by the wait_time argument Example:: class MyUser(User): wait_time = constant(3)
(wait_time: float)
| 21 | |
| 22 | |
| 23 | def constant(wait_time: float) -> Callable[["User"], float]: |
| 24 | """ |
| 25 | Returns a function that just returns the number specified by the wait_time argument |
| 26 | |
| 27 | Example:: |
| 28 | |
| 29 | class MyUser(User): |
| 30 | wait_time = constant(3) |
| 31 | """ |
| 32 | return lambda instance: wait_time |
| 33 | |
| 34 | |
| 35 | def constant_pacing(wait_time: float) -> Callable[["User"], float]: |
no outgoing calls
no test coverage detected
searching dependent graphs…