(plugin, request, **kwargs)
| 8 | |
| 9 | @plugin.method("make_notify") |
| 10 | def make_notify(plugin, request, **kwargs): |
| 11 | plugin.notify_message(request, "Beginning stage 1") |
| 12 | for i in range(100): |
| 13 | plugin.notify_progress(request, i, 100, stage=0, stage_total=2) |
| 14 | time.sleep(0.01) |
| 15 | plugin.notify_message(request, "Beginning stage 2", level='debug') |
| 16 | for i in range(10): |
| 17 | plugin.notify_progress(request, i, 10, stage=1, stage_total=2) |
| 18 | time.sleep(0.1) |
| 19 | return "This worked" |
| 20 | |
| 21 | |
| 22 | plugin.run() |
nothing calls this directly
no test coverage detected