-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the default handler when raise_error_for_unhandled_request is…
… true (#885)
- Loading branch information
Showing
5 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from slack_bolt import BoltRequest | ||
from slack_bolt.error import BoltUnhandledRequestError | ||
|
||
|
||
class TestErrors: | ||
def setup_method(self): | ||
pass | ||
|
||
def teardown_method(self): | ||
pass | ||
|
||
def test_say(self): | ||
request = BoltRequest(body="foo=bar") | ||
exception = BoltUnhandledRequestError( | ||
request=request, | ||
current_response={}, | ||
last_global_middleware_name="last_middleware", | ||
) | ||
assert str(exception) == "unhandled request error" |