You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add helpers for running before and after callbacks #91
We should add helpers for running a before and after callback.
These are special callbacks that we typically don't run in test suites. This gives the user the ability to put authorization checking into a before callback for all of its handlers but not have to worry about stubbing it out for every test.
It would be nice though if we had a way to run these via the runner to test them. Currently, the user has to do something like:
or we should add a method to the runner that can be called (maybe both?):
@runner.run_before_callbacks
The benefit of the first option is that we can run the callbacks when they normally would be run, before init! is called. The "problem" with it is you can no longer write that attribute to the handler if for some reason a handler had a run_before_callbacks writer.
Activity