(connector, key, protocol, loop)
| 48 | |
| 49 | |
| 50 | def test_callbacks_on_release(connector, key, protocol, loop) -> None: |
| 51 | conn = Connection(connector, key, protocol, loop) |
| 52 | notified = False |
| 53 | |
| 54 | def cb(): |
| 55 | nonlocal notified |
| 56 | notified = True |
| 57 | |
| 58 | conn.add_callback(cb) |
| 59 | conn.release() |
| 60 | assert notified |
| 61 | |
| 62 | |
| 63 | def test_callbacks_exception(connector, key, protocol, loop) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…