thorn.funtests.tasks

Tasks used for functional testing.

Custom Celery worker remote control commands used in the Thorn functional test suite.

thorn.funtests.tasks.find_subscriber(self, subs, url)[source]

Find specific subscriber by URL.

thorn.funtests.tasks.hook_clear(state, event)[source]

Clear recorded hooks.

thorn.funtests.tasks.hook_subscribe(state, event, url=None, callback=None)[source]

Subscribe to webhook.

thorn.funtests.tasks.hook_unsubscribe(state, event, url)[source]

Unsubscribe from webhook.

thorn.funtests.tasks.setenv(state, setting_name, new_value)[source]

Remote control command to set Thorn application setting.

thorn.funtests.tasks.subscribers_for_event(event)[source]

Get a list of subscribers for an even by name.