(capsys)
| 73 | |
| 74 | |
| 75 | def test_register(capsys): |
| 76 | try: |
| 77 | assert not Callback.active |
| 78 | p = ProgressBar() |
| 79 | p.register() |
| 80 | |
| 81 | assert Callback.active |
| 82 | |
| 83 | get_threaded(dsk, "e") |
| 84 | check_bar_completed(capsys) |
| 85 | |
| 86 | p.unregister() |
| 87 | |
| 88 | assert not Callback.active |
| 89 | finally: |
| 90 | Callback.active.clear() |
| 91 | |
| 92 | |
| 93 | def test_no_tasks(capsys): |
nothing calls this directly
no test coverage detected